chore: improve truncation
This commit is contained in:
parent
47a71087c4
commit
e8ae3c1448
6 changed files with 11 additions and 11 deletions
|
@ -19,7 +19,7 @@
|
|||
</a>
|
||||
<span class="p-author h-card hidden">{{ globals.site_name }}</span>
|
||||
<div class="p-summary hidden">{{ post.data.post_excerpt }}</div>
|
||||
{{ post.description | markdown | truncate: 300 }}
|
||||
{{ post.description | normalize_whitespace | markdown | truncatewords: 50 }}
|
||||
</article>
|
||||
{%- endfor -%}
|
||||
{%- if postType != 'featured' -%}
|
||||
|
|
Reference in a new issue