mirror of
https://github.com/moparisthebest/www.moparscape.org
synced 2024-12-25 17:08:49 -05:00
only include facebook js if facebook_like is true
This commit is contained in:
parent
a81ef5e28b
commit
3bba3ed4cf
@ -1,3 +1,4 @@
|
|||||||
|
{% if site.facebook_like %}
|
||||||
<div id="fb-root"></div>
|
<div id="fb-root"></div>
|
||||||
<script>(function(d, s, id) {
|
<script>(function(d, s, id) {
|
||||||
var js, fjs = d.getElementsByTagName(s)[0];
|
var js, fjs = d.getElementsByTagName(s)[0];
|
||||||
@ -6,3 +7,4 @@
|
|||||||
js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
|
js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1";
|
||||||
fjs.parentNode.insertBefore(js, fjs);
|
fjs.parentNode.insertBefore(js, fjs);
|
||||||
}(document, 'script', 'facebook-jssdk'));</script>
|
}(document, 'script', 'facebook-jssdk'));</script>
|
||||||
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user