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" # 许可