Facebook Like button integration, fixes #176
Frederic Hemberger authored on 11/10/2011 at 12:29:095 | 6 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,8 @@ |
0 |
+<div id="fb-root"></div> |
|
1 |
+<script>(function(d, s, id) { |
|
2 |
+ var js, fjs = d.getElementsByTagName(s)[0]; |
|
3 |
+ if (d.getElementById(id)) {return;} |
|
4 |
+ js = d.createElement(s); js.id = id; |
|
5 |
+ js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1"; |
|
6 |
+ fjs.parentNode.insertBefore(js, fjs); |
|
7 |
+}(document, 'script', 'facebook-jssdk'));</script> |
... | ... |
@@ -5,4 +5,7 @@ |
5 | 5 |
{% if site.google_plus_one %} |
6 | 6 |
<div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div> |
7 | 7 |
{% endif %} |
8 |
+ {% if site.facebook_like %} |
|
9 |
+ <div class="fb-like" data-send="true" data-width="450" data-show-faces="false"></div> |
|
10 |
+ {% endif %} |
|
8 | 11 |
</div> |