Skip to content

Commit

Permalink
facebook like option
Browse files Browse the repository at this point in the history
  • Loading branch information
xdite committed Oct 9, 2011
1 parent e4df983 commit 294accd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .themes/classic/source/_includes/after_footer.html
@@ -1,4 +1,5 @@
{% include disqus.html %}
{% include facebook_like.html %}
{% include google_plus_one.html %}
{% include twitter_sharing.html %}
{% include google_analytics.html %}
Expand Down
8 changes: 8 additions & 0 deletions .themes/classic/source/_includes/facebook_like.html
@@ -0,0 +1,8 @@
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
3 changes: 3 additions & 0 deletions .themes/classic/source/_includes/post/sharing.html
Expand Up @@ -5,4 +5,7 @@
{% if site.google_plus_one %}
<div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div>
{% endif %}
{% if site.facebook_like %}
<div class="fb-like" data-send="true" data-width="450" data-show-faces="false"></div>
{% endif %}
</div>
3 changes: 3 additions & 0 deletions _config.yml
Expand Up @@ -80,3 +80,6 @@ disqus_show_comment_count: false

# Google Analytics
google_analytics_tracking_id:

# Facebook Like
facebook_like: true

0 comments on commit 294accd

Please sign in to comment.