diff --git a/settings.yaml b/settings.yaml
index 2e1bee6..3451921 100644
--- a/settings.yaml
+++ b/settings.yaml
@@ -4,6 +4,14 @@ metadata:
name: theme-default-setting
spec:
forms:
+ - group: sidebar
+ label: 侧边栏
+ formSchema:
+ - $formkit: textarea
+ name: widgets
+ label: 小部件
+ value: "profile,popular-posts,latest-comments,categories,tags"
+ help: "目前提供的小部件有:profile(站点资料), popular-posts(热门文章), latest-comments(最新评论), categories(文章分类), tags(文章标签)。你可以随意组合或排序,以逗号隔开。"
- group: content
label: 内容设置
formSchema:
diff --git a/templates/modules/sidebar.html b/templates/modules/sidebar.html
index fe0af7d..bad013d 100644
--- a/templates/modules/sidebar.html
+++ b/templates/modules/sidebar.html
@@ -1,273 +1,9 @@
diff --git a/templates/modules/widgets/categories.html b/templates/modules/widgets/categories.html
new file mode 100644
index 0000000..02596b7
--- /dev/null
+++ b/templates/modules/widgets/categories.html
@@ -0,0 +1,15 @@
+
diff --git a/templates/modules/widgets/latest-comments.html b/templates/modules/widgets/latest-comments.html
new file mode 100644
index 0000000..64b9735
--- /dev/null
+++ b/templates/modules/widgets/latest-comments.html
@@ -0,0 +1,102 @@
+
+
+
+ 最新评论
+
+
+
+ -
+
+

+
+
+
Phyllis McKenzie
+
1h
+
+
+ Fugit quae nam dolores impedit quia fuga pariatur dignissimos
+ recusandae.
+
+
+
+
+ -
+
+

+
+
+
Willard Labadie I
+
1h
+
+
+ Officiis quis quos repudiandae quam delectus impedit quidem amet
+ ut.
+
+
+
+
+ -
+
+

+
+
+
Miss Leonard Sporer
+
1h
+
+
Nesciunt dolores et debitis.
+
+
+
+ -
+
+

+
+
+
+ Et nesciunt dolorem eum ut corporis.
+
+
+
+
+ -
+
+

+
+
+
+ Autem labore ipsam earum reiciendis eum omnis.
+
+
+
+
+
+
+
diff --git a/templates/modules/widgets/popular-posts.html b/templates/modules/widgets/popular-posts.html
new file mode 100644
index 0000000..28bb8f9
--- /dev/null
+++ b/templates/modules/widgets/popular-posts.html
@@ -0,0 +1,39 @@
+
diff --git a/templates/modules/widgets/profile.html b/templates/modules/widgets/profile.html
new file mode 100644
index 0000000..af3e24b
--- /dev/null
+++ b/templates/modules/widgets/profile.html
@@ -0,0 +1,89 @@
+
+
+
+

+
+ 🌚
+
+
+
+
+
+
+ 97文章数
+
+
+ 18分类数
+
+
+ 117评论数
+
+
+ 92392访问量
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/templates/modules/widgets/tags.html b/templates/modules/widgets/tags.html
new file mode 100644
index 0000000..deff61d
--- /dev/null
+++ b/templates/modules/widgets/tags.html
@@ -0,0 +1,23 @@
+