From 4a3759c27cb7380074ed0b4d8782e185016ed92d Mon Sep 17 00:00:00 2001 From: j m <1406993111@qq.com> Date: Mon, 16 Dec 2024 19:19:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20=E6=89=A9=E5=B1=95?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=90=8E=E8=83=BD=E5=8A=9B=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=94=B1halo=E5=88=A0=E9=99=A4=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=E5=AF=BC=E8=87=B4=E7=9A=84=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E5=88=86=E4=BA=AB=E5=8A=9F=E8=83=BD=E6=97=B6=E5=BC=95?= =?UTF-8?q?=E5=8F=91=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 6 +++--- templates/common/config.html | 11 +++++++---- templates/main/article.html | 2 +- theme.yaml | 2 +- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/settings.yaml b/settings.yaml index 99cf713..6e8f312 100644 --- a/settings.yaml +++ b/settings.yaml @@ -199,12 +199,12 @@ spec: - $formkit: radio name: expand_login_skill label: 扩展登录后能力 - help: 开启后,在文章详情界面,根据作者身份显示编辑按钮。控制台按钮 - 登录组件样式 添加 新建文章 和 发布瞬间 菜单项。登录用户需要具有进入控制台的权限。 + help: 开启后,在文章详情界面,根据作者身份显示编辑按钮。控制台按钮 - 登录组件样式 添加 新建文章 和 发布瞬间 菜单项。登录用户需要具有进入相应功能的权限。 value: 'console' options: - - label: 控制台 + - label: 跳转到控制台 value: 'console' - - label: 个人 + - label: 跳转到个人中心 value: 'uc' - label: 关闭 value: 'none' diff --git a/templates/common/config.html b/templates/common/config.html index 0398234..194fc39 100644 --- a/templates/common/config.html +++ b/templates/common/config.html @@ -78,10 +78,13 @@ DreamConfig["pjax_state"] = [[${theme.config.enhance.enable_pjax}]]; /** 配置分享方式 */ let post_share = [] - for (let share of [[${theme.config.post.custom_post_share}]]) { - let type = share.realNode.type; - if (post_share.indexOf(type) === -1) { - post_share.push(type); + let custom_post_share = [[${theme.config.post.custom_post_share}]]; + if(custom_post_share) { + for (let share of custom_post_share) { + let type = share.realNode.type; + if (post_share.indexOf(type) === -1) { + post_share.push(type); + } } } if (post_share.length === 0) { diff --git a/templates/main/article.html b/templates/main/article.html index 58b3d94..503d1a8 100644 --- a/templates/main/article.html +++ b/templates/main/article.html @@ -50,7 +50,7 @@
  • [[${post.stats.upvote}]]
  • [[${#strings.length(#strings.trim(post.content.content))}]]
  • - 编辑
  • + 编辑
    =2.20.0" # 许可