summaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorBen Burwell <bburwell1@gmail.com>2014-06-08 18:59:36 -0400
committerBen Burwell <bburwell1@gmail.com>2014-06-08 18:59:36 -0400
commit5fb70b655b11e979f0c7e3691572b2c71ec971eb (patch)
treec47202ec39090d4b3c3148b4668064b0b466b839 /_layouts
parentee782e34ce28469a36e3091e2a26b82260c77989 (diff)
Add support for custom social media thumbnails
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/master.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/_layouts/master.html b/_layouts/master.html
index fda1576..17f5d60 100644
--- a/_layouts/master.html
+++ b/_layouts/master.html
@@ -37,7 +37,11 @@
{% else %}
<meta property="og:description" content="{{ site.description }}">
{% endif %}
+ {% if page.image %}
+ <meta property="og:image" content="{{ page.image }}">
+ {% else %}
<meta property="og:image" content="http://www.benburwell.com/assets/images/icons/benburwell.png">
+ {% endif %}
<meta property="og:type" content="website">
<meta property="fb:admins" content="1439777397">
@@ -51,7 +55,11 @@
{% else %}
<meta property="twitter:description" content="{{ site.description }}">
{% endif %}
+ {% if page.image %}
+ <meta name="twitter:image:src" content="{{ page.image }}">
+ {% else %}
<meta name="twitter:image:src" content="http://www.benburwell.com/assets/images/icons/benburwell.png">
+ {% endif %}
<meta name="twitter:domain" content="BenBurwell.com">
<!-- TypeKit -->