diff options
author | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-10-11 05:29:09 -0700 |
---|---|---|
committer | Frederic Hemberger <mail@frederic-hemberger.de> | 2011-10-11 05:29:09 -0700 |
commit | 13babc6d7db05bcdac60cb33ddc6542c4bde82db (patch) | |
tree | 500f606aab761cb83cab7ed920bb3cc111d63a80 /.themes/classic/source | |
parent | 35ebe0d647dd1775a99ba476f5f26958003c951e (diff) | |
parent | 294accde545a7213b274c5b625b44a17ed72e0f3 (diff) | |
download | my_new_personal_website-13babc6d7db05bcdac60cb33ddc6542c4bde82db.tar.xz my_new_personal_website-13babc6d7db05bcdac60cb33ddc6542c4bde82db.zip |
Merge pull request #210 from xdworks/294accde545a7213b274c5b625b44a17ed72e0f3
Facebook Like button integration, fixes #176
Diffstat (limited to '.themes/classic/source')
-rw-r--r-- | .themes/classic/source/_includes/after_footer.html | 1 | ||||
-rw-r--r-- | .themes/classic/source/_includes/facebook_like.html | 8 | ||||
-rw-r--r-- | .themes/classic/source/_includes/post/sharing.html | 3 |
3 files changed, 12 insertions, 0 deletions
diff --git a/.themes/classic/source/_includes/after_footer.html b/.themes/classic/source/_includes/after_footer.html index 80a481eb..b17f5463 100644 --- a/.themes/classic/source/_includes/after_footer.html +++ b/.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 %} diff --git a/.themes/classic/source/_includes/facebook_like.html b/.themes/classic/source/_includes/facebook_like.html new file mode 100644 index 00000000..6c4c2788 --- /dev/null +++ b/.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> diff --git a/.themes/classic/source/_includes/post/sharing.html b/.themes/classic/source/_includes/post/sharing.html index f0f9b9db..e32500d0 100644 --- a/.themes/classic/source/_includes/post/sharing.html +++ b/.themes/classic/source/_includes/post/sharing.html @@ -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> |