From 463b5701e93f7ac7982bc53c510a8279ad0ff11f Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Sat, 2 Sep 2023 13:33:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=9A=8F=E6=9C=BA=E5=9B=BE?= =?UTF-8?q?=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/archives.html | 2 +- templates/assets/zhheo/zhheoblog.css | 10 +++++----- templates/category.html | 2 +- templates/error/404.html | 4 ++-- templates/error/500.html | 4 ++-- templates/modules/post-list.html | 4 ++-- templates/modules/post/relatedPosts.html | 7 ++++--- templates/modules/widgets/aside/recent-posts.html | 2 +- templates/modules/widgets/top-group.html | 6 +++--- templates/post.html | 7 ++++--- templates/tag.html | 2 +- 11 files changed, 26 insertions(+), 24 deletions(-) diff --git a/templates/archives.html b/templates/archives.html index 8b9a19b9..00f94424 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -13,7 +13,7 @@
文章 - [[${siteStatsFinder.getStats().post}]]
+ th:with='postRandomImg=${#strings.contains(theme.config.layout.postRandomImg,"?") ? theme.config.layout.postRandomImg+"&" : theme.config.layout.postRandomImg+"?"}'>
diff --git a/templates/assets/zhheo/zhheoblog.css b/templates/assets/zhheo/zhheoblog.css index 27f763dd..02ad355d 100644 --- a/templates/assets/zhheo/zhheoblog.css +++ b/templates/assets/zhheo/zhheoblog.css @@ -1369,9 +1369,9 @@ blockquote footer cite::before { transition: all 0.3s ease 0s; } -@media screen and (max-width: 900px) { - .layout > div:first-child { - width: 100% !important; +@media screen and (max-width: 1200px) { + .layout>div:first-child { + width:100%!important } } @@ -6754,9 +6754,9 @@ a.console_switchbutton { } } -@media screen and (max-width: 900px) { +@media screen and (max-width: 1200px) { #aside-content { - display: none; + display:none } } diff --git a/templates/category.html b/templates/category.html index 1bcfb8d3..1d80cbdb 100644 --- a/templates/category.html +++ b/templates/category.html @@ -35,7 +35,7 @@
+ th:with='postRandomImg=${#strings.contains(theme.config.layout.postRandomImg,"?") ? theme.config.layout.postRandomImg+"&" : theme.config.layout.postRandomImg+"?"}'>
+ postRandomImg=${#strings.contains(theme.config.layout.postRandomImg,"?") ? theme.config.layout.postRandomImg+"&" : theme.config.layout.postRandomImg+"?"}'>
+ postRandomImg=${#strings.contains(theme.config.layout.postRandomImg,"?") ? theme.config.layout.postRandomImg+"&" : theme.config.layout.postRandomImg+"?"}'>
+ postRandomImg=${#strings.contains(theme.config.layout.postRandomImg,"?") ? theme.config.layout.postRandomImg+"&" : theme.config.layout.postRandomImg+"?"}'>
diff --git a/templates/modules/post/relatedPosts.html b/templates/modules/post/relatedPosts.html index 9e6d95e7..29cde02e 100644 --- a/templates/modules/post/relatedPosts.html +++ b/templates/modules/post/relatedPosts.html @@ -3,7 +3,8 @@ +containsTitle = ${#strings.contains(recommandPosts,post.spec.title)}, +postRandomImg=${#strings.contains(theme.config.layout.postRandomImg,'?') ? theme.config.layout.postRandomImg+'&' : theme.config.layout.postRandomImg+'?'}">