From 8136b6ee4c0ad36c82bd9f4c1971488f1dc8b171 Mon Sep 17 00:00:00 2001 From: riseforever2026 Date: Thu, 1 Oct 2026 11:16:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8B=E9=93=BE=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/links/index.astro | 27 ++++++++++++++----- src/styles/content.css | 10 ++++--- src/styles/global.css | 2 +- .../tasks/46d8b446ce82482d--pwsh-1/events.jsonl | 2 ++ .../46d8b446ce82482d--pwsh-1/snapshot.json | 1 + .../tasks/46d8b446ce82482d--pwsh-1/task.lock | 0 6 files changed, 31 insertions(+), 11 deletions(-) create mode 100644 博客/.reasonix/tasks/46d8b446ce82482d--pwsh-1/events.jsonl create mode 100644 博客/.reasonix/tasks/46d8b446ce82482d--pwsh-1/snapshot.json create mode 100644 博客/.reasonix/tasks/46d8b446ce82482d--pwsh-1/task.lock diff --git a/src/pages/links/index.astro b/src/pages/links/index.astro index b14b5c9..0fd5b3e 100644 --- a/src/pages/links/index.astro +++ b/src/pages/links/index.astro @@ -12,7 +12,7 @@ const sections: Section[] = [{ name: '其他', links: [], contentLines: [] }]; let section = sections[0]; let shortcodeDepth = 0; const escapeHtml = (value: string) => value.replace(/[&<>"']/g, (character) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[character]!); -const renderNestedCard = (link: Link) => ``; +const renderNestedCard = (link: Link) => ``; for (const line of (page.body ?? '').split(/\r?\n/)) { if (/^\s*\[(?:collapse|hint|tip|tabs)\b[^\]]*\]\s*$/i.test(line)) { shortcodeDepth += 1; @@ -45,16 +45,16 @@ if (!sections[0].links.length && !sections[0].contentLines.some((line) => line.t