Permalink
Browse files

Add twitter:** meta-tags

  • Loading branch information...
1 parent e478f7e commit aef9d5ddcd056ebbcee8ba1f538ae2e246b7e9f1 @kuba-kubula kuba-kubula committed Feb 14, 2014
Showing with 9 additions and 5 deletions.
  1. +9 −5 _layouts/default.html
View
@@ -11,21 +11,25 @@
<meta name="application-name" content="Apiary">
<meta name="twitter:card" content="summary">
+ <meta property="og:type" content="article">
<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 name="twitter:title" content="{{ page.title }}&mdash;Apiary Blog">
<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 property="og:url" content="{{ site.url }}{{ page.url }}">
<meta name="description" content="{{ page.excerpt | escape }}&mdash;Apiary Blog">
+ <meta name="twitter: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="twitter:image" content="http://apiary-static.s3.amazonaws.com/assets/images/apiary-logotype-3D-only.png">
+ <meta property="og:image" content="http://apiary-static.s3.amazonaws.com/assets/images/apiary-logotype-3D-only.png">
+ <meta property="og:url" content="{{ site.url }}">
<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 name="twitter: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">

0 comments on commit aef9d5d

Please sign in to comment.