From cbcc70fde18979e024ca4d0afd031fee60aff907 Mon Sep 17 00:00:00 2001 From: davidtsadler Date: Wed, 7 Mar 2012 16:19:26 +0000 Subject: Social buttons for posts controlled via _config.yml. --- _config.yml.example | 4 ++++ _site_build/_includes/social/buttons.html | 5 +++++ _site_build/_layouts/post.html | 16 ++++------------ _site_build/css/style.css | 2 +- lib/templates/post.markdown | 1 - 5 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 _site_build/_includes/social/buttons.html 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 @@ +
+ {% 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 %} +
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 %} | Comments {% endif %} - {% if page.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 %} -
+ {% if site.social_buttons %} + {% include social/buttons.html %} {% endif %} {{ content }}