From 4feb5e95af6e0561241119ad80a9bb7302b36eae Mon Sep 17 00:00:00 2001 From: KazooTTT Date: Thu, 6 Mar 2025 15:18:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BD=92=E6=A1=A3?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=93=BE=E6=8E=A5=E7=94=9F=E6=88=90=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复归档页面中文章链接生成错误的问题 - 根据文章类型(post或note)动态生成链接,将post指向/posts/,note指向/notes/ --- src/pages/archive/[...page].astro | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/archive/[...page].astro b/src/pages/archive/[...page].astro index ac66baf..14943f8 100644 --- a/src/pages/archive/[...page].astro +++ b/src/pages/archive/[...page].astro @@ -94,7 +94,10 @@ const descYearKeys = Object.keys(groupedByYear).sort((a, b) => +b - +a);