From b480a428cc5a4b8cf8564cca45a4979ca41dacd9 Mon Sep 17 00:00:00 2001 From: nineya <361654768@qq.com> Date: Fri, 1 Dec 2023 19:51:58 +0800 Subject: [PATCH] =?UTF-8?q?perf(comment):=20=E5=85=81=E8=AE=B8=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E5=85=B3=E9=97=AD=E8=AF=84=E8=AE=BA=EF=BC=8C=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E3=80=81=E9=A1=B5=E9=9D=A2=E8=AF=84=E8=AE=BA=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=94=9F=E6=95=88=EF=BC=8C#64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/common/layout.html | 79 ++++++++++++++++++----------------- templates/common/scripts.html | 4 +- templates/links.html | 4 +- templates/main/article.html | 2 +- templates/moments.html | 4 +- templates/page.html | 3 +- templates/post.html | 3 +- 7 files changed, 50 insertions(+), 49 deletions(-) diff --git a/templates/common/layout.html b/templates/common/layout.html index 4953471..85cc028 100644 --- a/templates/common/layout.html +++ b/templates/common/layout.html @@ -1,45 +1,46 @@ - - - -
- -
- - - - - - - - - - -
-
-
-
- -
- - - - - - -
+ + + + +
+
-
- - - - + + + + + + + + + + +
+
+
+
+ +
+ + + + + + +
+
+
+ + + + + \ No newline at end of file diff --git a/templates/common/scripts.html b/templates/common/scripts.html index 709dac1..1060de0 100644 --- a/templates/common/scripts.html +++ b/templates/common/scripts.html @@ -14,9 +14,7 @@ - - - + diff --git a/templates/links.html b/templates/links.html index 7bb81bd..baa3ef6 100644 --- a/templates/links.html +++ b/templates/links.html @@ -1,7 +1,7 @@ + th:with="baseEnableComment = ${!#strings.isEmpty(theme.config.page_config.link_comment_id)}">
@@ -46,7 +46,7 @@
-
+

评论

diff --git a/templates/main/article.html b/templates/main/article.html index a834d5b..30fa594 100644 --- a/templates/main/article.html +++ b/templates/main/article.html @@ -89,7 +89,7 @@
-
+

评论

diff --git a/templates/moments.html b/templates/moments.html index 44e16bf..b2eb067 100644 --- a/templates/moments.html +++ b/templates/moments.html @@ -1,7 +1,7 @@
@@ -37,7 +37,7 @@
-
+
diff --git a/templates/page.html b/templates/page.html index f820415..caf379a 100644 --- a/templates/page.html +++ b/templates/page.html @@ -4,5 +4,6 @@ th:with="enableKatex = ${!#strings.isEmpty(singlePage.metadata.annotations.get('enable_katex'))? singlePage.metadata.annotations.get('enable_katex') : theme.config.post.enable_katex}, enableShare = ${!#strings.isEmpty(singlePage.metadata.annotations.get('enable_share'))? singlePage.metadata.annotations.get('enable_share') : theme.config.post.enable_post_share}, enableCopyright = ${!#strings.isEmpty(singlePage.metadata.annotations.get('enable_copyright'))? singlePage.metadata.annotations.get('enable_copyright') : theme.config.post.enable_copyright}, - enableDonate = ${!#strings.isEmpty(singlePage.metadata.annotations.get('enable_donate'))? singlePage.metadata.annotations.get('enable_donate') : theme.config.post.enable_post_donate}"> + enableDonate = ${!#strings.isEmpty(singlePage.metadata.annotations.get('enable_donate'))? singlePage.metadata.annotations.get('enable_donate') : theme.config.post.enable_post_donate}, + baseEnableComment = ${singlePage.spec.allowComment}">
diff --git a/templates/post.html b/templates/post.html index f72cafb..941114e 100644 --- a/templates/post.html +++ b/templates/post.html @@ -4,5 +4,6 @@ th:with="enableKatex = ${!#strings.isEmpty(post.metadata.annotations.get('enable_katex'))? post.metadata.annotations.get('enable_katex') : theme.config.post.enable_katex}, enableShare = ${!#strings.isEmpty(post.metadata.annotations.get('enable_share'))? post.metadata.annotations.get('enable_share') : theme.config.post.enable_post_share}, enableCopyright = ${!#strings.isEmpty(post.metadata.annotations.get('enable_copyright'))? post.metadata.annotations.get('enable_copyright') : theme.config.post.enable_copyright}, - enableDonate = ${!#strings.isEmpty(post.metadata.annotations.get('enable_donate'))? post.metadata.annotations.get('enable_donate') : theme.config.post.enable_post_donate}"> + enableDonate = ${!#strings.isEmpty(post.metadata.annotations.get('enable_donate'))? post.metadata.annotations.get('enable_donate') : theme.config.post.enable_post_donate}, + baseEnableComment = ${post.spec.allowComment}">