summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2021-01-11 18:36:18 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2021-01-11 18:36:18 +0800
commit4be8ad5418b14cd3aeb93f7f379884edc0c55a1d (patch)
treec0617443454f4413d7a0d639e2b17157e3f919ba /_includes
parentfac480f381ea6ed2a1b294292c471f0daae365a4 (diff)
fix: article excerpt was incorrect for cjk content
Diffstat (limited to '_includes')
-rw-r--r--_includes/views/pagination.html4
1 files changed, 3 insertions, 1 deletions
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 %}
<h2 class="post-title">
{%- assign post_url = post.url | relative_url -%}
@@ -28,7 +30,7 @@
<span class="post-reading-time left-vsplit"><i class="fa fa-clock-o"></i> {{ reading_time }}</span>
</div>
<p class="post-excerpt">
- {{ post.content | strip_html | truncatewords: 50 }}
+ {{ excerpt }}
</p>
<div class="post-tags">
{%- for tag in post.tags -%}