Permalink
Browse files

Support Twitter cards with excerpt + description and other useful og-…

…meta-tags
  • Loading branch information...
kuba-kubula committed Feb 14, 2014
1 parent 8405936 commit e478f7e20e8116cb7edd2afee1837365486167ae
Showing with 20 additions and 1 deletion.
  1. +20 −1 _layouts/default.html
View
@@ -1,5 +1,5 @@
<!doctype html>
-<html>
+<html prefix="og: http://ogp.me/ns#">
<head>
<meta charset="utf-8">
@@ -9,6 +9,25 @@
<meta name="author" content="Apiary">
<link rel="alternate" type="application/rss+xml" title="{{site.title}} Feed" href="{{site.url}}/feed.xml" />
+ <meta name="application-name" content="Apiary">
+ <meta name="twitter:card" content="summary">
+ <meta name="twitter:site" content="@apiaryio">
+ <meta name="twitter:creator" content="@apiaryio">
+
+ <meta property="twitter:account_id" content="183960592">
+ <meta property="og:type" content="article">
+ <meta property="og:title" content="{{ page.title }}&mdash;Apiary Blog">
+ <meta property="og:image" content="http://apiary-static.s3.amazonaws.com/assets/images/apiary-logotype-3D-only.png">
+ {% if page.excerpt %}
+ <meta name="description" content="{{ page.excerpt | escape }}&mdash;Apiary Blog">
+ <meta property="og:description" content="{{ page.excerpt | escape }}&mdash;Apiary Blog">
+ <meta property="og:url" content="{{ site.url }}{{ page.url }}">
+ {% else %}
+ <meta name="description" content="The Apiary Blog&mdash;Build beautiful APIs and read a few lines of text too. The life in Apiary and people around.">
+ <meta property="og:description" content="The Apiary Blog&mdash;Build beautiful APIs and read a few lines of text too. The life in Apiary and people around.">
+ <meta property="og:url" content="{{ site.url }}">
+ {% endif %}
+
<link rel="shortcut icon" href="/favicon.ico">
<!-- Styles -->

0 comments on commit e478f7e

Please sign in to comment.