From 6a18943b9d6df8b017b0d4e55d5a82ba13063bc9 Mon Sep 17 00:00:00 2001 From: liuzhihang Date: Sat, 29 Oct 2022 22:14:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 23 ++++++++++++++++++++--- templates/category.html | 2 +- templates/index.html | 2 +- templates/page.html | 4 ++++ templates/post.html | 2 +- templates/tag.html | 2 +- 6 files changed, 28 insertions(+), 7 deletions(-) diff --git a/settings.yaml b/settings.yaml index aba14422..c24f3b0d 100644 --- a/settings.yaml +++ b/settings.yaml @@ -122,9 +122,26 @@ spec: label: "左侧" - $formkit: textarea name: widgets - label: 小部件(无效) - value: "profile,recent-posts,latest-comments,categories,tags" - help: "目前提供的小部件有:profile(站点资料), recent-posts(近期文章), latest-comments(最新评论), categories(文章分类), tags(文章标签)。你可以随意组合或排序,以逗号隔开。" + label: 小部件 + value: "profile,wechat,comments,recent-posts,categories,tags-stat" + help: "目前提供的小部件有:profile(站点资料), wechat(微信), recent-posts(近期文章), comments(最新评论), categories(文章分类), tags(文章标签), stat(统计), tags-stat(标签&统计)。你可以随意组合或排序,以逗号隔开。" + - $formkit: textarea + name: post_widgets + label: 文章页面小部件 + value: "profile,wechat,toc,comments,recent-posts,categories,tags-stat" + help: "post 可以支持设置 toc " + - $formkit: textarea + name: tag_widgets + label: 标签页面小部件 + value: "profile,wechat,comments,recent-posts,categories,tags-stat" + - $formkit: textarea + name: category_widgets + label: 分类页面小部件 + value: "profile,wechat,comments,recent-posts,categories,tags-stat" + - $formkit: textarea + name: page_widgets + label: 自定义页面小部件 + value: "" - $formkit: text name: profile_name label: 个人卡片名称 diff --git a/templates/category.html b/templates/category.html index f3306d76..1cbe0e82 100644 --- a/templates/category.html +++ b/templates/category.html @@ -66,7 +66,7 @@ -
+
diff --git a/templates/index.html b/templates/index.html index c1a804f6..dd572ef2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -24,7 +24,7 @@ -
+
diff --git a/templates/page.html b/templates/page.html index b6052543..790e33d2 100644 --- a/templates/page.html +++ b/templates/page.html @@ -13,6 +13,10 @@
+ + +
+ diff --git a/templates/post.html b/templates/post.html index e908cb88..81dc93cf 100644 --- a/templates/post.html +++ b/templates/post.html @@ -230,7 +230,7 @@ -
+
diff --git a/templates/tag.html b/templates/tag.html index 9bf43efc..21ad507e 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -50,7 +50,7 @@ -
+