Browse code

facebook like option

xdite authored on 09/10/2011 at 08:29:02
Showing 4 changed files
... ...
@@ -1,4 +1,5 @@
1 1
 {% include disqus.html %}
2
+{% include facebook_like.html %}
2 3
 {% include google_plus_one.html %}
3 4
 {% include twitter_sharing.html %}
4 5
 {% include google_analytics.html %}
5 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>
... ...
@@ -80,3 +80,6 @@ disqus_show_comment_count: false
80 80
 
81 81
 # Google Analytics
82 82
 google_analytics_tracking_id:
83
+   
84
+# Facebook Like
85
+facebook_like: true