Browse code

only include facebook js if facebook_like is true

Aaron Malone authored on 23/10/2011 at 05:46:00
Showing 1 changed files
... ...
@@ -1,3 +1,4 @@
1
+{% if site.facebook_like %}
1 2
 <div id="fb-root"></div>
2 3
 <script>(function(d, s, id) {
3 4
   var js, fjs = d.getElementsByTagName(s)[0];
... ...
@@ -6,3 +7,4 @@
6 6
   js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
7 7
   fjs.parentNode.insertBefore(js, fjs);
8 8
 }(document, 'script', 'facebook-jssdk'));</script>
9
+{% endif %}