summaryrefslogtreecommitdiffstats
path: root/source/_layouts
diff options
context:
space:
mode:
authorRobert Wijas <robert.wijas@gmail.com>2012-03-26 00:11:55 +0200
committerRobert Wijas <robert.wijas@gmail.com>2012-07-15 22:02:50 +0200
commit1960fd36eeb6602f2e32446bd2c35b5d2c5091a7 (patch)
treedfa161d2a5055ace25f34e9c67a5f23ff3356775 /source/_layouts
parent0d2d56352f7b3627a723f03061348848c2053a98 (diff)
downloadoctopress-theme-jeyzu-1960fd36eeb6602f2e32446bd2c35b5d2c5091a7.zip
octopress-theme-jeyzu-1960fd36eeb6602f2e32446bd2c35b5d2c5091a7.tar.gz
respecting page.sharing in layouts
Diffstat (limited to 'source/_layouts')
-rw-r--r--source/_layouts/page.html4
-rw-r--r--source/_layouts/post.html4
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>