fix: article excerpt was incorrect for cjk content

This commit is contained in:
jeffreytse 2021-01-11 18:36:18 +08:00
parent fac480f381
commit 4be8ad5418

View file

@ -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 -%}