diff --git a/_includes/news.html b/_includes/news.html index c7b4a644..4a5a607a 100644 --- a/_includes/news.html +++ b/_includes/news.html @@ -11,7 +11,15 @@

{{post_1.title}}

Published on {{ post_1.date | date: "%Y-%m-%d"}} by {{ post_1.author }}

- {{ post_1.content | truncatewords: site.big-post-preview-words | markdownify }} + {% if post_1.content contains '' %} + {{ post_1.content | split:'' | first | markdownify}} + read more + {% else %} + {{ post_1.content | truncatewords: site.big-post-preview-words, "" | markdownify }} + {% if (post_1.content | number_of_words) > site.big-post-preview-words %} + read more + {% endif %} + {% endif %} {% endif %}
@@ -19,14 +27,30 @@

{{ post_2.title }}

Published on {{ post_2.date | date: "%Y-%m-%d"}} by {{ post_2.author }}

- {{ post_2.content | truncatewords: site.post-preview-words | markdownify }} + {% if post_2.content contains '' %} + {{ post_2.content | split:'' | first | markdownify}} + read more + {% else %} + {{ post_2.content | truncatewords: site.post-preview-words, "" | markdownify }} + {% if (post_2.content | number_of_words) > site.post-preview-words %} + read more + {% endif %} + {% endif %}
{% endif %} {% if post_3 != nil %}
-

{{ post_3.title }}

+

{{ post_3.title }}

Published on {{ post_3.date | date: "%Y-%m-%d"}} by {{ post_3.author }}

- {{ post_3.content | truncatewords: site.post-preview-words | markdownify }} + {% if post_3.content contains '' %} + {{ post_3.content | split:'' | first | markdownify}} + read more + {% else %} + {{ post_3.content | truncatewords: site.post-preview-words, "" | markdownify }} + {% if (post_3.content | number_of_words) > site.post-preview-words %} + read more + {% endif %} + {% endif %}
{% endif %}