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