From 7678f18d2f31d374d78e8141ac88fe46d7968c95 Mon Sep 17 00:00:00 2001 From: liuzhihang Date: Fri, 14 Oct 2022 08:39:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20index=20top?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 22 ++ templates/index.html | 2 +- templates/modules/recent-top.html | 14 + templates/modules/top-post.html | 307 -------------------- templates/modules/widgets/banner-group.html | 203 +++++++++++++ templates/modules/widgets/top-group.html | 108 +++++++ 6 files changed, 348 insertions(+), 308 deletions(-) create mode 100644 templates/modules/recent-top.html delete mode 100644 templates/modules/top-post.html create mode 100644 templates/modules/widgets/banner-group.html create mode 100644 templates/modules/widgets/top-group.html diff --git a/settings.yaml b/settings.yaml index fe5b99d8..8ae88451 100644 --- a/settings.yaml +++ b/settings.yaml @@ -17,6 +17,28 @@ spec: label: 标题 placeholder: 请输入标题 help: 支持 HTML 语法,比如 Hao,默认为站点名称 + - group: top + label: 顶部 + formSchema: + - $formkit: radio + name: content_header + label: 首页顶部 + value: true + options: + - label: 显示 + value: true + - label: 隐藏 + value: false + - $formkit: text + name: banners_title_big + label: Banners 大标题 + placeholder: 请输入大标题 + help: 支持 HTML 语法 + - $formkit: text + name: banners_title_small + label: Banners 小标题 + placeholder: 请输入小标题 + help: 支持 HTML 语法 - group: layout label: 布局 formSchema: diff --git a/templates/index.html b/templates/index.html index d11ca405..307da2e2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -278,7 +278,7 @@
-
+
diff --git a/templates/modules/recent-top.html b/templates/modules/recent-top.html new file mode 100644 index 00000000..f1e98fe2 --- /dev/null +++ b/templates/modules/recent-top.html @@ -0,0 +1,14 @@ + + + +
+
+ +
+ +
+ +
+
+ + \ No newline at end of file diff --git a/templates/modules/top-post.html b/templates/modules/top-post.html deleted file mode 100644 index 557a868d..00000000 --- a/templates/modules/top-post.html +++ /dev/null @@ -1,307 +0,0 @@ - - - -
-
-
-
-
-
分享设计
-
与科技生活
-
ZHHEO.COM
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
- -
- -
-
- - \ No newline at end of file diff --git a/templates/modules/widgets/banner-group.html b/templates/modules/widgets/banner-group.html new file mode 100644 index 00000000..7a20df88 --- /dev/null +++ b/templates/modules/widgets/banner-group.html @@ -0,0 +1,203 @@ + + +
+ + +
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+ + + +
+ \ No newline at end of file diff --git a/templates/modules/widgets/top-group.html b/templates/modules/widgets/top-group.html new file mode 100644 index 00000000..d6d3ccda --- /dev/null +++ b/templates/modules/widgets/top-group.html @@ -0,0 +1,108 @@ + + + + + \ No newline at end of file