Browse code

Merge pull request #240 from aaroncm/master

Only include facebook js if it is to be used

Frederic Hemberger authored on 23/10/2011 at 06:21:56
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 %}