summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_config.yml.example4
-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
-rw-r--r--lib/templates/post.markdown1
5 files changed, 14 insertions, 14 deletions
diff --git a/_config.yml.example b/_config.yml.example
index 6f78a0b..ee03a07 100644
--- a/_config.yml.example
+++ b/_config.yml.example
@@ -53,6 +53,10 @@ copyright_year:
# Optional Disqus integration.
#disqus_shortname:
+# Social buttons will be enabled for posts.
+# Each post can control what buttons they want through their meta tags.
+social_buttons: true
+
# ***************************
# JEKYLL
# ***************************
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;
}
diff --git a/lib/templates/post.markdown b/lib/templates/post.markdown
index 56ed542..213fb54 100644
--- a/lib/templates/post.markdown
+++ b/lib/templates/post.markdown
@@ -6,7 +6,6 @@ description: :description
categories: :categories
robots: follow, noodp, noydir, noarchive
comments: true
-social: true
google_plus: true
twitter_share: true
facebook_like: true