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 @@ -
+