From dfe7bb31818d5833bafdfcf4308ec4870a5b869e Mon Sep 17 00:00:00 2001 From: xing Date: Wed, 10 May 2023 13:18:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=96=87=E6=A1=A3=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=9A=84=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- app/theme/wp/listpostplugins.go | 1 + config.example.yaml | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c0497d0..144f3bb 100644 --- a/README.md +++ b/README.md @@ -62,10 +62,10 @@ 分为对列表页文章数据的修改的插件和对影响整个程序表现的插件 -| 列表页文章数据插件 | 整个程序表现的插件 | -|----------------------|--------------------------------------| -| passwordProject 密码保护 | enlighter 代码高亮(需要在后台安装enlighterjs插件) | -| digest 自动生成指定长度的摘要 | hiddenLogin 隐藏登录入口 | +| 列表页文章数据插件 | 整个程序表现的插件 | +|---------------------|--------------------------------------| +| digest 自动生成指定长度的摘要 | enlighter 代码高亮(需要在后台安装enlighterjs插件) | +| | hiddenLogin 隐藏登录入口 | #### 其它 diff --git a/app/theme/wp/listpostplugins.go b/app/theme/wp/listpostplugins.go index 4b33d94..04593d6 100644 --- a/app/theme/wp/listpostplugins.go +++ b/app/theme/wp/listpostplugins.go @@ -79,6 +79,7 @@ func UsePostsPlugins() PostsPlugin { pluginss = append(pluginss, f) } } + slice.Unshift(&pluginss, PasswordProject) return PostsPlugins(PostPlugin(ordinaryPlugin.Load()...), pluginss...) } diff --git a/config.example.yaml b/config.example.yaml index 6e8fcd3..e9f376b 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -97,4 +97,4 @@ plugins: ["enlightjs"] # 插件存放路径 pluginPath: "./plugins" # 列表页面post使用的插件 -listPagePlugins: ["passwordProject","digest","twentyseventeen_postThumbnail"] \ No newline at end of file +listPagePlugins: ["digest"] \ No newline at end of file