ignore excerpt_separator in index.html

This commit is contained in:
Dean Attali 2016-10-04 19:36:39 -07:00 committed by GitHub
parent 44768abb55
commit 1b550134f1

View File

@ -22,10 +22,6 @@ subtitle: This is where I will tell my friends way too much about me
</p> </p>
<div class="post-entry"> <div class="post-entry">
{% if post.content contains site.excerpt_separator %}
{{ post.excerpt | strip_html | xml_escape }}
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">[Read&nbsp;More]</a>
{% else %}
{% assign cleaned_content = post.content | strip_html | xml_escape %} {% assign cleaned_content = post.content | strip_html | xml_escape %}
{% assign truncated_content = cleaned_content | truncatewords: 50 %} {% assign truncated_content = cleaned_content | truncatewords: 50 %}
{% if truncated_content == cleaned_content %} {% if truncated_content == cleaned_content %}
@ -34,7 +30,6 @@ subtitle: This is where I will tell my friends way too much about me
{{ truncated_content }} {{ truncated_content }}
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">[Read&nbsp;More]</a> <a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">[Read&nbsp;More]</a>
{% endif%} {% endif%}
{% endif %}
</div> </div>
{% if post.tags.size > 0 %} {% if post.tags.size > 0 %}