
Untitled
By: a guest on
May 1st, 2012 | syntax:
None | size: 0.50 KB | hits: 18 | expires: Never
<!-- This snippet checks for an excerpt variable that I assign to true on my index pages, but not on the post pages, then checks to see if the post has an excerpt to see if it should render the excerpt of the post or the whole thing -->
<div class="entry">
{% if excerpt and post.excerpt %}
{{ post.excerpt }}
<p> <a href="{{ post.url }}/#more" class="more-link"><span class="readmore">Read the rest of this entry ยป</span></a></p>
{% else %}
{{ post.content | mark_excerpt }}
{% endif %}
</div>