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 }}">
|
||||
{% endif %}
|
||||
{{ article.summary }}
|
||||
<br>
|
||||
<a class="btn" href="{{ SITEURL }}/{{ article.url }}{% if not DISABLE_URL_HASH %}#{{ article.slug }}{% endif %}">{{ _('Continue reading') }}</a>
|
||||
{% 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 %}
|
||||
|
|
Loading…
Reference in a new issue