Merge pull request #210 from xdworks/294accde545a7213b274c5b625b44a17ed72e0f3

Facebook Like button integration, fixes #176
This commit is contained in:
Frederic Hemberger 2011-10-11 05:29:09 -07:00
commit 13babc6d7d
4 changed files with 15 additions and 0 deletions

View File

@ -1,4 +1,5 @@
{% include disqus.html %} {% include disqus.html %}
{% include facebook_like.html %}
{% include google_plus_one.html %} {% include google_plus_one.html %}
{% include twitter_sharing.html %} {% include twitter_sharing.html %}
{% include google_analytics.html %} {% include google_analytics.html %}

View File

@ -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>

View File

@ -5,4 +5,7 @@
{% if site.google_plus_one %} {% if site.google_plus_one %}
<div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div> <div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div>
{% endif %} {% endif %}
{% if site.facebook_like %}
<div class="fb-like" data-send="true" data-width="450" data-show-faces="false"></div>
{% endif %}
</div> </div>

View File

@ -80,3 +80,6 @@ disqus_show_comment_count: false
# Google Analytics # Google Analytics
google_analytics_tracking_id: google_analytics_tracking_id:
# Facebook Like
facebook_like: true