Permalink
Browse files

Better support for Open Graph metadata (proper og:url, better og:imag…

…e, and conditional og:description) #225
  • Loading branch information...
dstaley committed Nov 6, 2012
1 parent 5b00d6f commit 418a9293c154595411b7485ff6797d2431234c1a
Showing with 4 additions and 3 deletions.
  1. +4 −3 _includes/head.html
  2. BIN images/ogimage.png
View
@@ -1,10 +1,11 @@
<meta charset="utf-8">
<title>{% if page.title %}{{ page.title }} | {% endif %}Iron.io Dev Center</title>
<meta property="og:type" content="website" />
-<meta property="og:url" content="http://www.dev.iron.io{{ page.url }}" />
-<meta property="og:image" content="http://www.iron.io/assets/logo.png" />
+<meta property="og:url" content="http://{{ site.domain }}{{ site.baseurl }}{{ page.url }}" />
+<meta property="og:image" content="{{ site.baseurl }}/images/ogimage.png" />
<meta property="og:title" content="{% if page.title %}{{ page.title }} | {% endif %}Iron.io Dev Center" />
-<meta name="description" content="" />
+<meta property="og:description" content="{% if page.summary %}{{ page.summary }}{% endif %}" />
+<meta name="description" content="{% if page.summary %}{{ page.summary }}{% endif %}" />
<meta name="google-site-verification" content="_p0K1FT08lpHP3jvMJON4-koeaHVqMPwCB8GOEMqucQ" />
<link type="text/css" rel="stylesheet" href="{{ site.baseurl }}/css/application.css" />
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 418a929

Please sign in to comment.