From b066a94ce3540326029b9bd4aa9f670bfedec568 Mon Sep 17 00:00:00 2001 From: biss Date: Thu, 18 Jun 2026 18:38:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9C=E9=97=B4=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ArticleSidebar.astro | 96 +++-- src/components/HomeSidebar.astro | 20 +- src/layouts/BaseLayout.astro | 67 ++- src/lib/pages.ts | 6 +- src/pages/posts/[slug].astro | 63 ++- src/pages/shuoshuo.astro | 27 ++ src/styles/site.css | 647 +++++++++++++++++++++++++++- static/js/shuoshuo.js | 50 ++- 8 files changed, 896 insertions(+), 80 deletions(-) create mode 100644 src/pages/shuoshuo.astro diff --git a/src/components/ArticleSidebar.astro b/src/components/ArticleSidebar.astro index 8317afa..e281dc8 100644 --- a/src/components/ArticleSidebar.astro +++ b/src/components/ArticleSidebar.astro @@ -57,52 +57,54 @@ const tocSections = toc.reduce((sections, item) => { )} - {toc.length > 0 && ( - - )} - - + + + diff --git a/src/components/HomeSidebar.astro b/src/components/HomeSidebar.astro index 435fb2f..df474b0 100644 --- a/src/components/HomeSidebar.astro +++ b/src/components/HomeSidebar.astro @@ -40,17 +40,17 @@ const recentPosts = posts.slice(0, 5); - -