Solves issue #94 with disqus comments being enabled by default globally

This commit is contained in:
Roman Valls Guimera 2014-12-27 18:20:25 +01:00 committed by Michael Rose
parent 4d497f2818
commit f3ca4c542e
2 changed files with 3 additions and 3 deletions

View file

@ -58,6 +58,6 @@
</script> </script>
{% endif %} {% endif %}
{% if page.comments %} {% if page.comments or site.comments %}
{% include disqus_comments.html %} {% include disqus_comments.html %}
{% endif %} {% endif %}

View file

@ -35,13 +35,13 @@
<span class="author vcard">By <span class="fn">{{ author.name }}</span></span> <span class="author vcard">By <span class="fn">{{ author.name }}</span></span>
<span class="entry-date date published"><time datetime="{{ page.date | date_to_xmlschema }}"><i class="fa fa-calendar-o"></i> {{ page.date | date: "%B %d, %Y" }}</time></span> <span class="entry-date date published"><time datetime="{{ page.date | date_to_xmlschema }}"><i class="fa fa-calendar-o"></i> {{ page.date | date: "%B %d, %Y" }}</time></span>
{% if page.modified %}<span class="entry-date date modified"><time datetime="{{ page.modified }}"><i class="fa fa-pencil"></i> {{ page.modified | date: "%B %d, %Y" }}</time></span>{% endif %} {% if page.modified %}<span class="entry-date date modified"><time datetime="{{ page.modified }}"><i class="fa fa-pencil"></i> {{ page.modified | date: "%B %d, %Y" }}</time></span>{% endif %}
{% if site.owner.disqus-shortname and page.comments == true %}<span class="entry-comments"><i class="fa fa-comment-o"></i> <a href="#disqus_thread">Comment</a></span>{% endif %} {% if (site.owner.disqus-shortname and page.comments) or site.comments %}<span class="entry-comments"><i class="fa fa-comment-o"></i> <a href="#disqus_thread">Comment</a></span>{% endif %}
{% if page.share %}{% include social-share.html %}{% endif %} {% if page.share %}{% include social-share.html %}{% endif %}
{% if page.ads != true %}{% include ad-sidebar.html %}<!-- /.google-ads -->{% endif %} {% if page.ads != true %}{% include ad-sidebar.html %}<!-- /.google-ads -->{% endif %}
</footer> </footer>
<div class="entry-content"> <div class="entry-content">
{{ content }} {{ content }}
{% if site.owner.disqus-shortname and page.comments == true %}<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 -->{% endif %}
</div><!-- /.entry-content --> </div><!-- /.entry-content -->
</div><!-- /.entry-wrapper --> </div><!-- /.entry-wrapper -->
<nav class="pagination" role="navigation"> <nav class="pagination" role="navigation">