From 8da369b1661c060dae0fb33de3dc7345ff67eb3c Mon Sep 17 00:00:00 2001 From: xing Date: Tue, 18 Apr 2023 21:05:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=91=98=E8=A6=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.example.yaml | 5 +- internal/pkg/cache/feed.go | 6 +- internal/pkg/config/config.go | 1 + internal/plugins/digest.go | 50 ++++++++++++-- plugin/digest/digest.go | 124 +++++++++++++++------------------- 5 files changed, 104 insertions(+), 82 deletions(-) diff --git a/config.example.yaml b/config.example.yaml index a8ed53c..feecad0 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -60,9 +60,10 @@ cacheTime: commentsCacheTime: 24h # 随机sleep时间 sleepTime: [ 1s,3s ] -# 摘要字数 +# 摘要字数 >0截取指定字数 =0输出出空字符 <0为不截取,原样输出 digestWordCount: 300 - +# 摘要允许的标签 默认为