Fix post excerpts

This commit is contained in:
Paulus Schoutsen 2015-10-28 21:56:22 -07:00
parent 3055107296
commit 32ab407c3a

View File

@ -22,11 +22,13 @@
{% endunless %}
</header>
{% if post.excerpted and index %}
<div class="entry-content clearfix">
{{ post.excerpt }}
<a class="btn pull-right" href="{{ root_url }}{{ post.url }}#read-more">{{ site.excerpt_link }}</a>
</div>
{% if index %}
<div class="entry-content clearfix">
{{ post.excerpt }}
{% if post.content contains site.excerpt_separator %}
<a class="btn pull-right" href="{{ post.url }}#read-more">{{ site.excerpt_link }}</a>
{% endif %}
</div>
{% else %}
{{ post.content | replace: site.excerpt_separator, '<a name="read-more"></a>' }}
{% endif %}