From db95e185df3f9c2840ddc9aeadd6d7dac4fd8649 Mon Sep 17 00:00:00 2001
From: "1152958806@qq.com" <17683872107czx>
Date: Thu, 13 Jul 2023 16:40:40 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=95=99=E8=A8=80=E6=9D=BF?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A8=A1=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
settings.yaml | 65 ++++++++++++++
templates/comments.html | 167 ++++++++++++++++++++++++++++++++++++
templates/modules/head.html | 3 +
theme.yaml | 4 +
4 files changed, 239 insertions(+)
create mode 100644 templates/comments.html
diff --git a/settings.yaml b/settings.yaml
index 34bcfa11..a40ccee6 100644
--- a/settings.yaml
+++ b/settings.yaml
@@ -1451,6 +1451,7 @@ spec:
value:
心路历程
为什么建站?
创建这个站的时候,想要就是能够有一个自己能够积累知识、积累兴趣的地方。和他人分享,会让这些成为积累和沉淀。如果能够帮助到更多的人,帮助更多人解决问题,那一定是非常棒的事情。
分享这件事我从很早就开始了,起初做的微信公众号,现在做的网站。因为我比较喜欢研究数码和软件,想要探究在互联网上的事物是如何被创造和发展。网络给我带来了非常多的知识和眼界,我也想力所能及的分享一些我生活的琐碎知识。
与大多数垂直类的技术博客不同,这里的种类会非常的繁杂,有技能的教程干货、有生活上的吐槽和妙招、有话题上的思考和想法。一般我研究什么、发现了什么都会分享在这里。
这些就是创造这个小站的本意,也是我分享生活的方式。有幸能和你相遇在这里,相信我们能共同留下一段美好记忆。
help: 支持 HTML 语法
+
- group: aboutReward
label: 关于(打赏)
formSchema:
@@ -1540,6 +1541,70 @@ spec:
- label: 否
value: N
+ - group: envelope_comment
+ label: 留言板
+ formSchema:
+ - $formkit: text
+ name: title
+ label: 标题
+ placeholder: 请输入内容
+ value: 留言板
+ - $formkit: group
+ name: custom_pic
+ label: 信笺图片
+ value:
+ cover:
+ line:
+ beforeimg:
+ afterimg:
+ children:
+ - $formkit: attachment
+ name: cover
+ label: 头部图片
+ placeholder: 请输入内容
+ value: "https://npm.elemecdn.com/hexo-butterfly-envelope/lib/violet.jpg"
+ - $formkit: attachment
+ name: line
+ label: 底部图片
+ placeholder: 请输入内容
+ value: "https://npm.elemecdn.com/hexo-butterfly-envelope/lib/line.png"
+ - $formkit: attachment
+ name: beforeimg
+ label: 前半部分图片
+ placeholder: 请输入内容
+ value: "https://npm.elemecdn.com/hexo-butterfly-envelope/lib/before.png"
+ - $formkit: attachment
+ name: afterimg
+ label: 后半部分图片
+ placeholder: 请输入内容
+ value: "https://npm.elemecdn.com/hexo-butterfly-envelope/lib/after.png"
+ - $formkit: repeater
+ name: messageList
+ label: 正文
+ value:
+ - content: "有什么想问的?"
+ - content: "有什么想说的?"
+ - content: "有什么想吐槽的?"
+ - content: "哪怕是有什么想吃的,都可以告诉我哦~"
+ children:
+ - $formkit: text
+ name: content
+ label: 内容
+ placeholder: 请输入内容
+ value: "有什么想问的?"
+ - $formkit: text
+ name: bottom
+ label: 底部文本
+ placeholder: 请输入内容
+ value: 自动书记人偶竭诚为您服务!
+ help: 仅支持单行文本
+ - $formkit: number
+ name: height
+ label: 高度
+ placeholder: 请输入内容
+ help: 信封划出的高度
+ value: 1024
+
- group: comments
label: 评论
formSchema:
diff --git a/templates/comments.html b/templates/comments.html
new file mode 100644
index 00000000..8a5a136d
--- /dev/null
+++ b/templates/comments.html
@@ -0,0 +1,167 @@
+
+
+
+
+
+
+
+
+
+
+
+
[[${theme.config.envelope_comment.title}]]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/templates/modules/head.html b/templates/modules/head.html
index 9b4f58be..868b0a17 100644
--- a/templates/modules/head.html
+++ b/templates/modules/head.html
@@ -323,6 +323,9 @@
case 'music':
title = '音乐馆'
break;
+ case 'comments':
+ title = '留言板'
+ break;
}
if (title != '')
diff --git a/theme.yaml b/theme.yaml
index bedc061c..3f876b15 100644
--- a/theme.yaml
+++ b/theme.yaml
@@ -25,6 +25,10 @@ spec:
description: 404 not found
screenshot:
file: 404.html
+ - name: 留言板页面模版
+ description: 留言板页面
+ screenshot:
+ file: comments.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