From c9e753d4255e1ad349754b5de098461e33ddde13 Mon Sep 17 00:00:00 2001 From: Artium Date: Wed, 12 Apr 2017 21:09:10 +0300 Subject: [PATCH] Moved comment count to header. Add comment count to the article as well. Display comment link only when disqus is configured --- templates/article.html | 5 +++++ templates/index.html | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/article.html b/templates/article.html index 004043d..3915e7f 100644 --- a/templates/article.html +++ b/templates/article.html @@ -18,6 +18,11 @@ when=article.locale_date, category='%s'|format(SITEURL, article.category.url, article.category)|safe) }} + {% if DISQUS_SITENAME %} + • {{ _('View Comments') }} + {% endif %} + + {% if 'post_stats' in PLUGINS %} • {{ article.stats['read_mins'] }} min read {% endif %} diff --git a/templates/index.html b/templates/index.html index c6dda38..cc6182b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -21,6 +21,10 @@ when=article.locale_date, category='%s'|format(SITEURL, article.category.url, article.category)|safe) }} + {% if DISQUS_SITENAME %} + • {{ _('View Comments') }} + {% endif %} + {% if article.tags and not HOME_HIDE_TAGS %} • {{ _('Tagged with') }} {% for tag in article.tags %} @@ -41,7 +45,6 @@ {{ article.summary }}
{{ _('Continue reading') }} - {{ _('View Comments') }} {% else %} {{ article.content }} {% endif %}