From d3a71a5ebc502076ccac95b8e8584146f2950b57 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 11 Nov 2014 09:14:10 -0500 Subject: [PATCH] Move social sharing links into an include --- _includes/social-share.html | 10 ++++++++++ _layouts/post.html | 15 ++------------- 2 files changed, 12 insertions(+), 13 deletions(-) create mode 100644 _includes/social-share.html diff --git a/_includes/social-share.html b/_includes/social-share.html new file mode 100644 index 0000000..cf3db5e --- /dev/null +++ b/_includes/social-share.html @@ -0,0 +1,10 @@ + + Tweet + + + Like + + + +1 + + \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index 93f1a26..e314e90 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -36,19 +36,8 @@ {% if page.modified %}{% endif %} {% if site.owner.disqus-shortname and page.comments == true %} Comment{% endif %} - {% if page.share %} - - Tweet - - - Like - - - +1 - - - {% endif %} - {% if page.ads != false %}{% include ad-sidebar.html %}{% endif %} + {% if page.share %}{% include social-share.html %}{% endif %} + {% if page.ads != true %}{% include ad-sidebar.html %}{% endif %}
{{ content }}