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 fcde4d999f
commit 1a389c9f3f
3 changed files with 4 additions and 6 deletions

View file

@ -6,7 +6,6 @@ description: A simple and clean responsive Jekyll theme for words and photos.
logo: site-logo.png
url: //mmistakes.github.io/so-simple-theme
# 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">