summaryrefslogtreecommitdiff
path: root/_site_build/_layouts
diff options
context:
space:
mode:
authordavidtsadler <davidtsadler@googlemail.com>2012-03-03 19:34:26 +0000
committerdavidtsadler <davidtsadler@googlemail.com>2012-03-03 19:34:26 +0000
commit0a2633126a4157d96c0ef8eef3eba80a72c89858 (patch)
tree13c21d50c15612e283674e96940d6a4d4fc79083 /_site_build/_layouts
parent61ee181397d5ba77127f8f12891a3b512a74b586 (diff)
Add social buttons to post.
Fix link to modernizr-2.5.3.min.js
Diffstat (limited to '_site_build/_layouts')
-rw-r--r--_site_build/_layouts/default.html13
-rw-r--r--_site_build/_layouts/post.html14
2 files changed, 25 insertions, 2 deletions
diff --git a/_site_build/_layouts/default.html b/_site_build/_layouts/default.html
index 17944c5..264ad87 100644
--- a/_site_build/_layouts/default.html
+++ b/_site_build/_layouts/default.html
@@ -28,10 +28,19 @@
</div>
</div>
{% if site.production and site.google_ua %}
- {% include google_analytics.html %}
+ {% include javascript/google_analytics.html %}
+{% endif %}
+{% if page.google_plus %}
+ {% include javascript/google_plus.html %}
+{% endif %}
+{% if page.twitter_share %}
+ {% include javascript/twitter.html %}
+{% endif %}
+{% if page.facebook_like %}
+ {% include javascript/facebook.html %}
{% endif %}
{% if (page.comments or page.show_comment_counts) and site.disqus_shortname %}
- {% include disqus.html %}
+ {% include javascript/disqus.html %}
{% endif %}
</body>
</html>
diff --git a/_site_build/_layouts/post.html b/_site_build/_layouts/post.html
index df3a342..51d78e3 100644
--- a/_site_build/_layouts/post.html
+++ b/_site_build/_layouts/post.html
@@ -11,9 +11,23 @@ layout: default
{% if page.comments and site.disqus_shortname %}
<span class="comment-count"> | <a href="{{ page.url }}#disqus_thread" data-disqus-identifier="{{ page.url }}">Comments</a></span>
{% endif %}
+ {% if page.social %}
+ <div class="social">
+ {% if page.google_plus %}{% include social/google_plus.html %}{% endif %}
+ {% if page.twitter_share %}{% include social/twitter_share.html %}{% endif %}
+ {% if page.facebook_like %}{% include social/facebook_like.html %}{% endif %}
+ </div>
+ {% endif %}
</header>
{{ content }}
<footer>
+ {% if page.social %}
+ <div class="social">
+ {% if page.google_plus %}{% include social/google_plus.html %}{% endif %}
+ {% if page.twitter_share %}{% include social/twitter_share.html %}{% endif %}
+ {% if page.facebook_like %}{% include social/facebook_like.html %}{% endif %}
+ </div>
+ {% endif %}
<nav>
<ul>
{% if page.previous.url %}