From 1960fd36eeb6602f2e32446bd2c35b5d2c5091a7 Mon Sep 17 00:00:00 2001
From: Robert Wijas <robert.wijas@gmail.com>
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 %}
     <div class="entry-content">{{ content }}</div>
 </article>
-{% 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 %}
 <section id="comment">
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
 ---
 
 <article class="post">{% include article.html %}</article>
-{% include post/sharing.html %}
+{% unless page.sharing == false %}
+	{% include post/sharing.html %}
+{% endunless %}
 {% if site.disqus_short_name and page.comments == true %}
 <section id="comment">
     <h1 class="title">Comments</h1>
-- 
cgit v1.1-2-g2b99