From 4be8ad5418b14cd3aeb93f7f379884edc0c55a1d Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Mon, 11 Jan 2021 18:36:18 +0800 Subject: fix: article excerpt was incorrect for cjk content --- _includes/views/pagination.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '_includes/views/pagination.html') diff --git a/_includes/views/pagination.html b/_includes/views/pagination.html index c1814e3..15c6b23 100644 --- a/_includes/views/pagination.html +++ b/_includes/views/pagination.html @@ -16,6 +16,8 @@ {% assign lang = post.lang %} {%- include functions.html func='get_reading_time' -%} {% assign reading_time = return %} + {%- include functions.html func='get_article_excerpt' -%} + {% assign excerpt = return %}

{%- assign post_url = post.url | relative_url -%} @@ -28,7 +30,7 @@ {{ reading_time }}

- {{ post.content | strip_html | truncatewords: 50 }} + {{ excerpt }}