From ab736ce1d70ff14dd3095029f8ff7c7908e4c255 Mon Sep 17 00:00:00 2001 From: nineya <361654768@qq.com> Date: Fri, 29 Dec 2023 17:20:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(thumbnail):=20=E5=BD=92=E6=A1=A3=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4=E5=B0=81=E9=9D=A2?= =?UTF-8?q?=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/archives.html | 7 ++++--- templates/main/article.html | 2 +- templates/main/article_list.html | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/templates/archives.html b/templates/archives.html index 82f4e13..00e0f31 100644 --- a/templates/archives.html +++ b/templates/archives.html @@ -12,9 +12,10 @@
-
- - +
+ +
diff --git a/templates/main/article.html b/templates/main/article.html index f62b903..a4fadf6 100644 --- a/templates/main/article.html +++ b/templates/main/article.html @@ -1,7 +1,7 @@ + thumbnail = ${#strings.isEmpty(post.spec.cover) ? #strings.isEmpty(theme.config.post.default_thumbnail) ? '' : theme.config.post.default_thumbnail + (#strings.contains(theme.config.post.default_thumbnail, '?') ? '&' : '?') + 'id=' + post.metadata.name : post.spec.cover}">
diff --git a/templates/main/article_list.html b/templates/main/article_list.html index 564610c..ce22777 100644 --- a/templates/main/article_list.html +++ b/templates/main/article_list.html @@ -1,7 +1,7 @@