Moved comment count to header. Add comment count to the article as well. Display comment link only when disqus is configured

This commit is contained in:
Artium 2017-04-12 21:09:10 +03:00
parent 9084cb343f
commit c9e753d425
2 changed files with 9 additions and 1 deletions

View file

@ -18,6 +18,11 @@
when=article.locale_date,
category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }}
{% if DISQUS_SITENAME %}
&#8226; <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">{{ _('View Comments') }}</a>
{% endif %}
{% if 'post_stats' in PLUGINS %}
&#8226; {{ article.stats['read_mins'] }} min read
{% endif %}

View file

@ -21,6 +21,10 @@
when=article.locale_date,
category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }}
{% if DISQUS_SITENAME %}
&#8226; <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">{{ _('View Comments') }}</a>
{% endif %}
{% if article.tags and not HOME_HIDE_TAGS %}
&#8226; {{ _('Tagged with') }}
{% for tag in article.tags %}
@ -41,7 +45,6 @@
{{ article.summary }}
<br>
<a class="btn" href="{{ SITEURL }}/{{ article.url }}{% if not DISABLE_URL_HASH %}#{{ article.slug }}{% endif %}">{{ _('Continue reading') }}</a>
<a class="btn" href="{{ SITEURL }}/{{ article.url }}#disqus_thread">{{ _('View Comments') }}</a>
{% else %}
{{ article.content }}
{% endif %}