From 5df41feb02a7ac7f04bd4445e352a273395d9b51 Mon Sep 17 00:00:00 2001 From: lsy Date: Sat, 19 Apr 2025 22:17:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=A0=B7=E5=BC=8F=E5=92=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Breadcrumb.tsx | 2 - src/components/Header.astro | 183 +++++++++++++++-------------- src/components/ThemeToggle.astro | 76 +++++++++--- src/pages/articles/[...id].astro | 1 + src/pages/articles/[...path].astro | 7 ++ src/pages/articles/index.astro | 4 + src/styles/header.css | 16 --- 7 files changed, 165 insertions(+), 124 deletions(-) diff --git a/src/components/Breadcrumb.tsx b/src/components/Breadcrumb.tsx index 2f96978..4ab25e7 100644 --- a/src/components/Breadcrumb.tsx +++ b/src/components/Breadcrumb.tsx @@ -1,5 +1,3 @@ -import React from 'react'; - interface Breadcrumb { name: string; path: string; diff --git a/src/components/Header.astro b/src/components/Header.astro index 2367740..633dee5 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -92,12 +92,11 @@ const normalizedPath = NAV_LINKS.map((link) => ( {link.text} @@ -253,19 +252,18 @@ const normalizedPath = class="hidden md:hidden fixed inset-x-0 top-16 z-40" id="mobile-menu" > -
+
{ NAV_LINKS.map((link) => ( {link.text} @@ -288,22 +286,12 @@ const normalizedPath =