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:
commit
6583473d4b
1 changed files with 4 additions and 2 deletions
|
@ -39,8 +39,10 @@
|
||||||
<img src="{{ article.featured_image }}">
|
<img src="{{ article.featured_image }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ article.summary }}
|
{{ article.summary }}
|
||||||
|
{% if article.content != article.summary %}
|
||||||
<br>
|
<br>
|
||||||
<a class="btn" href="{{ SITEURL }}/{{ article.url }}{% if not DISABLE_URL_HASH %}#{{ article.slug }}{% endif %}">{{ _('Continue reading') }}</a>
|
<a class="btn" href="{{ SITEURL }}/{{ article.url }}{% if not DISABLE_URL_HASH %}#{{ article.slug }}{% endif %}">{{ _('Continue reading') }}</a>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ article.content }}
|
{{ article.content }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue