From 864d134acd7d053beecf9613dc052e2bcc50c6d6 Mon Sep 17 00:00:00 2001 From: lsy Date: Sun, 20 Apr 2025 17:22:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2=E5=90=8E?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=85=B3=E9=97=AD=E6=90=9C=E7=B4=A2=E6=A1=86?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E7=9B=B8=E5=85=B3=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Header.astro | 1122 ++++++++++++++++-------------- src/components/Layout.astro | 31 + src/pages/articles/[...id].astro | 71 +- src/pages/articles/index.astro | 24 +- 4 files changed, 729 insertions(+), 519 deletions(-) diff --git a/src/components/Header.astro b/src/components/Header.astro index df340c3..58a5c6b 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -97,6 +97,7 @@ const normalizedPath = ? "text-primary-600 dark:text-primary-400 border-b-2 border-primary-600 dark:border-primary-400" : "text-secondary-600 dark:text-secondary-400 hover:text-primary-600 dark:hover:text-primary-400 hover:border-b-2 hover:border-primary-300 dark:hover:border-primary-700" }`} + data-astro-prefetch="hover" > {link.text} @@ -252,7 +253,10 @@ const normalizedPath = class="hidden md:hidden fixed inset-x-0 top-16 z-40" id="mobile-menu" > -
+
{ @@ -264,6 +268,7 @@ const normalizedPath = ? "text-white bg-primary-600 dark:bg-primary-500 shadow-sm" : "text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800/70" }`} + data-astro-prefetch="hover" > {link.text} @@ -286,431 +291,498 @@ const normalizedPath = - diff --git a/src/components/Layout.astro b/src/components/Layout.astro index 8ec4673..710b147 100644 --- a/src/components/Layout.astro +++ b/src/components/Layout.astro @@ -105,5 +105,36 @@ const { title = SITE_NAME, description = SITE_DESCRIPTION, date, author, tags, i