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:
Brandon Mathis
2011-08-20 16:02:37 -04:00
parent 178a198ea7
commit 596ec87c37
3 changed files with 12 additions and 3 deletions

View File

@ -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 &rarr;</a>
</footer>
{% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
{% if excerpted == 'true' %}
<footer>
<a rel="full-article" href="{{ root_url }}{{ post.url }}">Read on &rarr;</a>
</footer>
{% endif %}
{% else %}
<div class="entry-content">{{ content }}</div>
{% endif %}