Skip to content

Commit

Permalink
only include facebook js if facebook_like is true
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncm committed Oct 23, 2011
1 parent a81ef5e commit 3bba3ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .themes/classic/source/_includes/facebook_like.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% if site.facebook_like %}
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
Expand All @@ -6,3 +7,4 @@
js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
{% endif %}

0 comments on commit 3bba3ed

Please sign in to comment.