mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-21 09:37:12 +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
c25fad72e5
commit
7956577cf4
3 changed files with 5 additions and 7 deletions
|
@ -7,7 +7,6 @@ logo: site-logo.png
|
||||||
search: true
|
search: true
|
||||||
url: http://localhost:4000
|
url: http://localhost:4000
|
||||||
|
|
||||||
|
|
||||||
# Jekyll configuration
|
# Jekyll configuration
|
||||||
|
|
||||||
permalink: /:categories/:title/
|
permalink: /:categories/:title/
|
||||||
|
@ -50,4 +49,4 @@ owner:
|
||||||
verify:
|
verify:
|
||||||
ad-client:
|
ad-client:
|
||||||
ad-slot:
|
ad-slot:
|
||||||
bing-verify:
|
bing-verify:
|
||||||
|
|
|
@ -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