Wrap disqus in a check for DISQUS_SITENAME

This commit is contained in:
Brian C. Lane 2015-11-07 10:17:26 -08:00 committed by Luca Chiricozzi
parent 1b7ea33fbe
commit 3607fdf37a

View File

@ -1,3 +1,4 @@
{% if DISQUS_SITENAME %}
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname
@ -10,4 +11,4 @@ var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example wit
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
{% endif %}