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})}"/>