Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…e, and conditional og:description) #225
  • Loading branch information...
commit 418a9293c154595411b7485ff6797d2431234c1a 1 parent 5b00d6f
@dstaley dstaley authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 _includes/head.html
  2. BIN  images/ogimage.png
View
7 _includes/head.html
@@ -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
BIN  images/ogimage.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Please sign in to comment.
Something went wrong with that request. Please try again.