diff --git a/settings.yaml b/settings.yaml index d8ad4df..2ab8e3a 100644 --- a/settings.yaml +++ b/settings.yaml @@ -828,17 +828,17 @@ sidebar_show: label: 侧边栏标题 type: text placeholder: 请输入标题内容 - description: "可覆盖默认侧边栏标题。" + description: "非必填,可覆盖默认侧边栏标题。" - name: icon label: 侧边栏图标 type: text placeholder: 请输入图标 class 内容 - description: "可覆盖默认侧边栏图标。" + description: "非必填,可覆盖默认侧边栏图标。" - name: content label: 侧边栏内容 type: textarea placeholder: 请输入 HTML 内容 - description: "仅在侧边栏类型为自定义时生效。" + description: "非必填,仅在侧边栏类型为自定义时生效。" sidebar_config: label: 侧边栏配置 items: diff --git a/template/widget/categories.ftl b/template/widget/categories.ftl index 0f0dd59..81e8d0d 100644 --- a/template/widget/categories.ftl +++ b/template/widget/categories.ftl @@ -22,7 +22,7 @@ <#assign postCounts = {}> <@categoryTag method="list">
- 分类 + ${(sidebar.title?? && sidebar.title != "")?then(sidebar.title, "分类")} <#if settings.categories_more?? && settings.categories_more== true && categories?size gt num?number> 更多 diff --git a/template/widget/custom.ftl b/template/widget/custom.ftl index 128c625..c395583 100644 --- a/template/widget/custom.ftl +++ b/template/widget/custom.ftl @@ -4,5 +4,5 @@ ${sidebar.title}
- ${sidebar.content} + ${sidebar.content!} \ No newline at end of file diff --git a/template/widget/links.ftl b/template/widget/links.ftl index 4139415..6b23cda 100644 --- a/template/widget/links.ftl +++ b/template/widget/links.ftl @@ -2,7 +2,7 @@