From 2b888254a126985a4abfefd19fb0e02cbc05b977 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Sat, 15 Jul 2023 01:36:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/comments.html | 20 ++++---------------- templates/links.html | 19 +++++-------------- templates/modules/comment.html | 21 +++++++++++++++++++++ templates/moments.html | 20 ++++---------------- templates/page.html | 21 +++++---------------- templates/page_links.html | 19 +++++-------------- templates/post.html | 19 ++++--------------- 7 files changed, 48 insertions(+), 91 deletions(-) create mode 100644 templates/modules/comment.html diff --git a/templates/comments.html b/templates/comments.html index 5798a61f..95cdf14f 100644 --- a/templates/comments.html +++ b/templates/comments.html @@ -136,23 +136,11 @@
- + -
-
-
-
-
评论
- -
- 你无需删除空行,直接评论以获取最佳展示效果 -
-
- -
+ th:replace="~{modules/comment :: comment(group = 'content.halo.run', + kind = 'SinglePage', + name = ${singlePage.metadata.name})}"/> diff --git a/templates/links.html b/templates/links.html index ef12f4c4..787b4657 100644 --- a/templates/links.html +++ b/templates/links.html @@ -14,20 +14,11 @@
- - -
-
-
-
-
评论
- -
- 你无需删除空行,直接评论以获取最佳展示效果 -
-
- -
+ + diff --git a/templates/modules/comment.html b/templates/modules/comment.html new file mode 100644 index 00000000..b759450f --- /dev/null +++ b/templates/modules/comment.html @@ -0,0 +1,21 @@ + + + + +
+
+ +
+
+
评论
+ +
+ 你无需删除空行,直接评论以获取最佳展示效果 +
+
+ +
+
+ \ No newline at end of file diff --git a/templates/moments.html b/templates/moments.html index 613dd0bd..95e36461 100644 --- a/templates/moments.html +++ b/templates/moments.html @@ -70,23 +70,11 @@
- + -
-
-
-
-
评论
- -
- 你无需删除空行,直接评论以获取最佳展示效果 -
-
- -
+ th:replace="~{modules/comment :: comment(group = 'content.halo.run', + kind = 'SinglePage', + name = 'moments')}"/> diff --git a/templates/page.html b/templates/page.html index 308aa13f..0c75e149 100644 --- a/templates/page.html +++ b/templates/page.html @@ -13,23 +13,12 @@

- + -
-
-
-
-
评论
- -
- 你无需删除空行,直接评论以获取最佳展示效果 -
-
- -
+ th:replace="~{modules/comment :: comment(group = 'content.halo.run', + kind = 'SinglePage', + name = ${singlePage.metadata.name})}"/> +
diff --git a/templates/page_links.html b/templates/page_links.html index 2663d758..61433945 100644 --- a/templates/page_links.html +++ b/templates/page_links.html @@ -16,20 +16,11 @@
- - -
-
-
-
-
评论
- -
- 你无需删除空行,直接评论以获取最佳展示效果 -
-
- -
+ + diff --git a/templates/post.html b/templates/post.html index 94a74f65..63238fd5 100644 --- a/templates/post.html +++ b/templates/post.html @@ -272,22 +272,11 @@
- + -
-
-
-
-
评论
- -
- 你无需删除空行,直接评论以获取最佳展示效果 -
-
- -
+ th:replace="~{modules/comment :: comment(group = 'content.halo.run', + kind = 'Post', + name = ${post.metadata.name})}"/>