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:
parent
9084cb343f
commit
c9e753d425
2 changed files with 9 additions and 1 deletions
|
@ -18,6 +18,11 @@
|
||||||
when=article.locale_date,
|
when=article.locale_date,
|
||||||
category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }}
|
category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }}
|
||||||
|
|
||||||
|
{% if DISQUS_SITENAME %}
|
||||||
|
• <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">{{ _('View Comments') }}</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{% if 'post_stats' in PLUGINS %}
|
{% if 'post_stats' in PLUGINS %}
|
||||||
• {{ article.stats['read_mins'] }} min read
|
• {{ article.stats['read_mins'] }} min read
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
when=article.locale_date,
|
when=article.locale_date,
|
||||||
category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }}
|
category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }}
|
||||||
|
|
||||||
|
{% if DISQUS_SITENAME %}
|
||||||
|
• <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">{{ _('View Comments') }}</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if article.tags and not HOME_HIDE_TAGS %}
|
{% if article.tags and not HOME_HIDE_TAGS %}
|
||||||
• {{ _('Tagged with') }}
|
• {{ _('Tagged with') }}
|
||||||
{% for tag in article.tags %}
|
{% for tag in article.tags %}
|
||||||
|
@ -41,7 +45,6 @@
|
||||||
{{ article.summary }}
|
{{ article.summary }}
|
||||||
<br>
|
<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 }}{% if not DISABLE_URL_HASH %}#{{ article.slug }}{% endif %}">{{ _('Continue reading') }}</a>
|
||||||
<a class="btn" href="{{ SITEURL }}/{{ article.url }}#disqus_thread">{{ _('View Comments') }}</a>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ article.content }}
|
{{ article.content }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue