fix: article excerpt was incorrect for cjk content
This commit is contained in:
parent
fac480f381
commit
4be8ad5418
1 changed files with 3 additions and 1 deletions
|
@ -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 -%}
|
||||
|
|
Loading…
Reference in a new issue