mirror of
https://github.com/c0de-archive/pelican-mg.git
synced 2024-12-22 16:32:40 +00:00
Wrap disqus in a check for DISQUS_SITENAME
This commit is contained in:
parent
1b7ea33fbe
commit
3607fdf37a
@ -1,3 +1,4 @@
|
|||||||
|
{% if DISQUS_SITENAME %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
|
||||||
var disqus_shortname = '{{ DISQUS_SITENAME }}'; // required: replace example with your forum shortname
|
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);
|
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
||||||
}());
|
}());
|
||||||
</script>
|
</script>
|
||||||
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user