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+'?'}">