From 3e5d8b5b58378e4a5197a0c58e9c444d593b962f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=A9=98?= Date: Wed, 15 Apr 2026 05:48:57 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20CI=20=E4=B8=89=E4=B8=AA=20type=20error?= =?UTF-8?q?=20+=20build=20font=20=E4=B8=8B=E8=BD=BD=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. ArchivePanel: category 类型 string|null 兼容 2. OG png: Buffer as BodyInit 类型断言 3. Navbar: LightDarkSwitch client:only ts-ignore 4. language-badge: _cssVar 未使用警告 5. build.yml: pnpm astro build → pnpm build(触发字体下载) 小橘 🍊(NEKO Team) --- .github/workflows/build.yml | 2 +- src/components/ArchivePanel.svelte | 2 +- src/components/Navbar.astro | 1 + src/pages/og/[...slug].png.ts | 2 +- src/plugins/expressive-code/language-badge.ts | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d79658e..fa214fb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,4 +64,4 @@ jobs: run: pnpm install --frozen-lockfile - name: Run Astro Build - run: pnpm astro build + run: pnpm build diff --git a/src/components/ArchivePanel.svelte b/src/components/ArchivePanel.svelte index 22939c2..7dfd340 100644 --- a/src/components/ArchivePanel.svelte +++ b/src/components/ArchivePanel.svelte @@ -19,7 +19,7 @@ interface Post { data: { title: string; tags: string[]; - category?: string; + category?: string | null; published: Date; }; } diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 2a0fdad..811c858 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -52,6 +52,7 @@ let links: NavBarLink[] = navBarConfig.links.map( )} + {/* @ts-ignore - Svelte client:only directive */}