summaryrefslogtreecommitdiff
path: root/_site_build
diff options
context:
space:
mode:
authordavidtsadler <davidtsadler@googlemail.com>2012-03-07 16:19:26 +0000
committerdavidtsadler <davidtsadler@googlemail.com>2012-03-07 16:19:26 +0000
commitcbcc70fde18979e024ca4d0afd031fee60aff907 (patch)
treeae60c43ec1f5fc8d879a026d5839bd00c4a4bd8b /_site_build
parent0a2633126a4157d96c0ef8eef3eba80a72c89858 (diff)
Social buttons for posts controlled via _config.yml.
Diffstat (limited to '_site_build')
-rw-r--r--_site_build/_includes/social/buttons.html5
-rw-r--r--_site_build/_layouts/post.html16
-rw-r--r--_site_build/css/style.css2
3 files changed, 10 insertions, 13 deletions
diff --git a/_site_build/_includes/social/buttons.html b/_site_build/_includes/social/buttons.html
new file mode 100644
index 0000000..828b435
--- /dev/null
+++ b/_site_build/_includes/social/buttons.html
@@ -0,0 +1,5 @@
+<div class="social-buttons">
+ {% 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>
diff --git a/_site_build/_layouts/post.html b/_site_build/_layouts/post.html
index 51d78e3..df0dcd0 100644
--- a/_site_build/_layouts/post.html
+++ b/_site_build/_layouts/post.html
@@ -11,22 +11,14 @@ 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>
+ {% if site.social_buttons %}
+ {% include social/buttons.html %}
{% 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>
+ {% if site.social_buttons %}
+ {% include social/buttons.html %}
{% endif %}
<nav>
<ul>
diff --git a/_site_build/css/style.css b/_site_build/css/style.css
index 962bc3a..f6a2511 100644
--- a/_site_build/css/style.css
+++ b/_site_build/css/style.css
@@ -223,7 +223,7 @@ article header time, article .categories, article .comment-count {
color: #999999;
}
-article header .social {
+article header .social-buttons {
margin-top: 0.5em;
}