From 17de6a6bfd3c437fe9f269f644fa75f712993a5a Mon Sep 17 00:00:00 2001
From: jeffreytse <jeffreytse.mail@gmail.com>
Date: Sat, 23 Jan 2021 17:12:40 +0800
Subject: chore: change the default article excerpt size

---
 _includes/functions/get_article_excerpt.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to '_includes')

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' -%}
-- 
cgit v1.2.3