Move Disqus script inside conditional to avoid <noscript> text from appearing on pages that have comments disabled

This commit is contained in:
Michael Rose 2015-01-22 11:23:54 -05:00
parent c25fad72e5
commit 7956577cf4
3 changed files with 5 additions and 7 deletions

View file

@ -7,7 +7,6 @@ logo: site-logo.png
search: true
url: http://localhost:4000
# Jekyll configuration
permalink: /:categories/:title/

View file

@ -23,7 +23,3 @@
})();
</script>
{% endif %}
{% if page.comments or site.comments %}
{% include disqus_comments.html %}
{% endif %}

View file

@ -41,7 +41,10 @@
</footer>
<div class="entry-content">
{{ content }}
{% if (site.owner.disqus-shortname and page.comments) or site.comments %}<div id="disqus_thread"></div><!-- /#disqus_thread -->{% endif %}
{% if (site.owner.disqus-shortname and page.comments) or site.comments %}
<div id="disqus_thread"></div><!-- /#disqus_thread -->
{% include disqus_comments.html %}
{% endif %}
</div><!-- /.entry-content -->
</div><!-- /.entry-wrapper -->
<nav class="pagination" role="navigation">