mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-12-22 16:46:02 +00:00
Move Disqus script inside conditional to avoid <noscript> text from appearing on pages that have comments disabled
This commit is contained in:
parent
fcde4d999f
commit
1a389c9f3f
3 changed files with 4 additions and 6 deletions
|
@ -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/
|
||||
|
|
|
@ -23,7 +23,3 @@
|
|||
})();
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% if page.comments or site.comments %}
|
||||
{% include disqus_comments.html %}
|
||||
{% endif %}
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue