Skip to content

Commit

Permalink
Merge pull request imathis#210 from xdworks/294accde545a7213b274c5b62…
Browse files Browse the repository at this point in the history
…5b44a17ed72e0f3

Facebook Like button integration, fixes imathis#176
  • Loading branch information
fhemberger committed Oct 11, 2011
2 parents 35ebe0d + 294accd commit 13babc6
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 13babc6

Please sign in to comment.