Merge pull request #160 from pawelngei/optional-continue-reading

Display "Continue Reading" button only if the article is longer than the summary
This commit is contained in:
Alexandre Vicenzi 2018-12-04 10:35:27 +01:00 committed by GitHub
commit 6583473d4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,8 +39,10 @@
<img src="{{ article.featured_image }}">
{% endif %}
{{ article.summary }}
{% if article.content != article.summary %}
<br>
<a class="btn" href="{{ SITEURL }}/{{ article.url }}{% if not DISABLE_URL_HASH %}#{{ article.slug }}{% endif %}">{{ _('Continue reading') }}</a>
{% endif %}
{% else %}
{{ article.content }}
{% endif %}