From 1960fd36eeb6602f2e32446bd2c35b5d2c5091a7 Mon Sep 17 00:00:00 2001 From: Robert Wijas Date: Mon, 26 Mar 2012 00:11:55 +0200 Subject: respecting page.sharing in layouts --- source/_layouts/page.html | 4 ++-- source/_layouts/post.html | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/_layouts/page.html b/source/_layouts/page.html index cf64047..5c1381d 100644 --- a/source/_layouts/page.html +++ b/source/_layouts/page.html @@ -8,8 +8,8 @@ layout: default {% endif %}
{{ content }}
-{% unless page.footer == false %} - {% include post/sharing.html %} +{% unless page.sharing == false %} + {% include post/sharing.html %} {% endunless %} {% if site.disqus_short_name and page.comments == true %}
diff --git a/source/_layouts/post.html b/source/_layouts/post.html index bab0f87..82990f0 100644 --- a/source/_layouts/post.html +++ b/source/_layouts/post.html @@ -4,7 +4,9 @@ single: true ---
{% include article.html %}
-{% include post/sharing.html %} +{% unless page.sharing == false %} + {% include post/sharing.html %} +{% endunless %} {% if site.disqus_short_name and page.comments == true %}

Comments

-- cgit v1.1-2-g2b99