mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-22 01:57:08 +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
|
logo: site-logo.png
|
||||||
url: //mmistakes.github.io/so-simple-theme
|
url: //mmistakes.github.io/so-simple-theme
|
||||||
|
|
||||||
|
|
||||||
# Jekyll configuration
|
# Jekyll configuration
|
||||||
|
|
||||||
permalink: /:categories/:title/
|
permalink: /:categories/:title/
|
||||||
|
|
|
@ -23,7 +23,3 @@
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if page.comments or site.comments %}
|
|
||||||
{% include disqus_comments.html %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
|
@ -41,7 +41,10 @@
|
||||||
</footer>
|
</footer>
|
||||||
<div class="entry-content">
|
<div class="entry-content">
|
||||||
{{ 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-content -->
|
||||||
</div><!-- /.entry-wrapper -->
|
</div><!-- /.entry-wrapper -->
|
||||||
<nav class="pagination" role="navigation">
|
<nav class="pagination" role="navigation">
|
||||||
|
|
Loading…
Reference in a new issue