From d5a464adf2c7635c2cbfdf787763e5199d409d52 Mon Sep 17 00:00:00 2001
From: roozen <2273038475@qq.com>
Date: Mon, 24 Jul 2023 15:04:02 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=9B=B8=E5=86=8C=E9=9B=86?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A8=A1=E6=9D=BF=EF=BC=8C=E9=80=82=E9=85=8D?=
=?UTF-8?q?=E5=9B=BE=E5=BA=93=E6=8F=92=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
settings.yaml | 50 +++++++++++
templates/album.html | 164 ++++++++++++++++++++++++++++++++++++
templates/modules/head.html | 3 +
templates/photos.html | 129 ++++++++++++++++++++++++++++
theme.yaml | 4 +
5 files changed, 350 insertions(+)
create mode 100644 templates/album.html
create mode 100644 templates/photos.html
diff --git a/settings.yaml b/settings.yaml
index 3ead2e89..d7b814ba 100644
--- a/settings.yaml
+++ b/settings.yaml
@@ -1220,6 +1220,56 @@ spec:
- label: 关闭
value: false
+ - group: photos
+ label: 图库
+ formSchema:
+ - $formkit: attachment
+ name: backgroundImg
+ validation: url
+ label: 图片
+ value: https://liuzhihang.com/upload/moments.png
+ placeholder: 请输入图片地址
+ - $formkit: text
+ name: smallTitle
+ label: 小标题
+ value: 相册集
+ - $formkit: text
+ name: bigTitle
+ label: 大标题
+ value: 这里是我的相册集哦😯
+ - $formkit: text
+ name: detail
+ label: 描述
+ value: 每一张照片都是一次美好的记忆。
+ - $formkit: repeater
+ name: list
+ label: 相册集
+ value:
+ - group_name: 既是日常,也是奇迹
+ group_description: 记录生活小美好。
+ url: https://bu.dusays.com/2023/04/09/64329399d1175.jpg
+ - group_name: 清晨&夕阳&美景
+ group_description: 因为到不了世界各地,所以请网友们发来了各地的夕阳与风景🌇。
+ url: https://bu.dusays.com/2023/04/09/64329399d1175.jpg
+ - group_name: 精选壁纸
+ group_description: 不一定精,但是我选了
+ url: https://bu.dusays.com/2023/04/09/64329399d1175.jpg
+ children:
+ - $formkit: text
+ name: group_name
+ label: 图库分组名称
+ placeholder: 请输入图库分组名称
+ help: 必须与图库插件里的分组名一致
+ - $formkit: text
+ name: group_description
+ label: 图库分组描述
+ placeholder: 请输入图库分组描述
+ - $formkit: attachment
+ name: url
+ label: 图库分组展示图
+ placeholder: 请输入图库分组展示图
+
+
- group: todo
label: 待办清单
formSchema:
diff --git a/templates/album.html b/templates/album.html
new file mode 100644
index 00000000..10403fa4
--- /dev/null
+++ b/templates/album.html
@@ -0,0 +1,164 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/modules/head.html b/templates/modules/head.html
index a0e72cd7..610d0f82 100644
--- a/templates/modules/head.html
+++ b/templates/modules/head.html
@@ -280,6 +280,9 @@
case 'music':
title = '音乐馆'
break;
+ case 'photos':
+ title = '图库'
+ break;
}
if (title != '')
diff --git a/templates/photos.html b/templates/photos.html
new file mode 100644
index 00000000..ca23706c
--- /dev/null
+++ b/templates/photos.html
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/theme.yaml b/theme.yaml
index ef28b551..989bb5d9 100644
--- a/theme.yaml
+++ b/theme.yaml
@@ -41,6 +41,10 @@ spec:
description: 我的装备页面
screenshot:
file: equipment.html
+ - name: 相册页面模版
+ description: 相册页面
+ screenshot:
+ file: album.html
description: Halo 2.x Theme base on Thymeleaf, Referring to Butterfly and Heo
logo: https://liuzhihang.com/upload/logo.jpg
website: https://liuzhihang.com