display "continue reading" button only if the article is longer than a summary

This commit is contained in:
alxd 2018-10-07 12:41:39 +02:00
parent 05ef87d545
commit 4f9262302f

View file

@ -40,7 +40,9 @@
{% endif %}
{{ article.summary }}
<br>
{% if article.content|length > article.summary|length %}
<a class="btn" href="{{ SITEURL }}/{{ article.url }}{% if not DISABLE_URL_HASH %}#{{ article.slug }}{% endif %}">{{ _('Continue reading') }}</a>
{% endif %}
{% else %}
{{ article.content }}
{% endif %}