From 1b550134f1a5e27b81e7b7604e2b682703f8f864 Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Tue, 4 Oct 2016 19:36:39 -0700 Subject: [PATCH] ignore excerpt_separator in index.html --- index.html | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index 5f93984..53c8aaa 100644 --- a/index.html +++ b/index.html @@ -22,19 +22,14 @@ subtitle: This is where I will tell my friends way too much about me

- {% if post.content contains site.excerpt_separator %} - {{ post.excerpt | strip_html | xml_escape }} - [Read More] + {% assign cleaned_content = post.content | strip_html | xml_escape %} + {% assign truncated_content = cleaned_content | truncatewords: 50 %} + {% if truncated_content == cleaned_content %} + {{ cleaned_content }} {% else %} - {% assign cleaned_content = post.content | strip_html | xml_escape %} - {% assign truncated_content = cleaned_content | truncatewords: 50 %} - {% if truncated_content == cleaned_content %} - {{ cleaned_content }} - {% else %} - {{ truncated_content }} - [Read More] - {% endif%} - {% endif %} + {{ truncated_content }} + [Read More] + {% endif%}
{% if post.tags.size > 0 %}