From 4f9262302fdec783d9d5baec31e6b88060b5be2a Mon Sep 17 00:00:00 2001 From: alxd Date: Sun, 7 Oct 2018 12:41:39 +0200 Subject: [PATCH] display "continue reading" button only if the article is longer than a summary --- templates/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index a0769c1..9f7acb7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -40,7 +40,9 @@ {% endif %} {{ article.summary }}
- {{ _('Continue reading') }} + {% if article.content|length > article.summary|length %} + {{ _('Continue reading') }} + {% endif %} {% else %} {{ article.content }} {% endif %}