summaryrefslogtreecommitdiff
path: root/_includes/functions/get_article_excerpt.html
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2021-01-23 17:12:40 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2021-01-23 17:12:40 +0800
commit17de6a6bfd3c437fe9f269f644fa75f712993a5a (patch)
treeeae3477413328f824cdc306aaca9cb4fa5006aae /_includes/functions/get_article_excerpt.html
parentd2f30259581db6e1cce903dbd2f5d1987c3c4f34 (diff)
chore: change the default article excerpt size
Diffstat (limited to '_includes/functions/get_article_excerpt.html')
-rw-r--r--_includes/functions/get_article_excerpt.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/_includes/functions/get_article_excerpt.html b/_includes/functions/get_article_excerpt.html
index 73793fd..2868b8d 100644
--- a/_includes/functions/get_article_excerpt.html
+++ b/_includes/functions/get_article_excerpt.html
@@ -11,7 +11,9 @@
{% if include.params.excerpt_size %}
{% assign excerpt_size = include.params.excerpt_size %}
{% else %}
- {% assign excerpt_size = excerpt_size | default: 800 %}
+ {% assign excerpt_size = excerpt_size
+ | default: site.excerpt_size
+ | default: 350 %}
{% endif %}
{%- include functions.html func='get_article_words' -%}