mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
now only excerpted articles show the "read on" link. Also the text for that link can be set in the _config.yml
This commit is contained in:
@ -12,9 +12,12 @@
|
||||
{% endunless %}
|
||||
{% if index %}
|
||||
<div class="entry-content">{{ content | excerpt }}</div>
|
||||
<footer>
|
||||
<a rel="full-article" href="{{ root_url }}{{ post.url }}">Read on →</a>
|
||||
</footer>
|
||||
{% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
|
||||
{% if excerpted == 'true' %}
|
||||
<footer>
|
||||
<a rel="full-article" href="{{ root_url }}{{ post.url }}">Read on →</a>
|
||||
</footer>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div class="entry-content">{{ content }}</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user