ignore excerpt_separator in index.html
This commit is contained in:
parent
44768abb55
commit
1b550134f1
19
index.html
19
index.html
@ -22,19 +22,14 @@ 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 %}
|
{% assign cleaned_content = post.content | strip_html | xml_escape %}
|
||||||
{{ post.excerpt | strip_html | xml_escape }}
|
{% assign truncated_content = cleaned_content | truncatewords: 50 %}
|
||||||
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">[Read More]</a>
|
{% if truncated_content == cleaned_content %}
|
||||||
|
{{ cleaned_content }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% assign cleaned_content = post.content | strip_html | xml_escape %}
|
{{ truncated_content }}
|
||||||
{% assign truncated_content = cleaned_content | truncatewords: 50 %}
|
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">[Read More]</a>
|
||||||
{% if truncated_content == cleaned_content %}
|
{% endif%}
|
||||||
{{ cleaned_content }}
|
|
||||||
{% else %}
|
|
||||||
{{ truncated_content }}
|
|
||||||
<a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">[Read More]</a>
|
|
||||||
{% endif%}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if post.tags.size > 0 %}
|
{% if post.tags.size > 0 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user