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 From d8238192d9fc377fd3c3f80524d44b4aaeab79b1 Mon Sep 17 00:00:00 2001 From: Robert Wijas Date: Mon, 26 Mar 2012 00:28:11 +0200 Subject: banner configuration (on/off) --- source/_layouts/default.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/_layouts/default.html b/source/_layouts/default.html index 70d04d1..a3fc49d 100644 --- a/source/_layouts/default.html +++ b/source/_layouts/default.html @@ -3,7 +3,9 @@ - {% include banner.html %} + {% unless page.banner == false %} + {% include banner.html %} + {% endunless %}
{{ content | expand_urls: root_url }}
{% include after_footer.html %} -- cgit v1.1-2-g2b99