display "continue reading" button only if the article is longer than a summary
This commit is contained in:
parent
05ef87d545
commit
4f9262302f
1 changed files with 3 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue