From bcc2d85560c8453d03fef64b17bc5bf4df3cc568 Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Tue, 26 May 2026 17:10:01 -0700 Subject: [PATCH] Adds table of contents. Removes now from the top level of the sidebar. --- src/components/Sidebar.astro | 1 - src/components/TableOfContents.astro | 31 +++++++++++++++ src/components/TableOfContentsTree.astro | 15 ++++++++ src/layouts/BlogPost.astro | 7 +++- src/lib/headings.ts | 49 ++++++++++++++++++++++++ src/pages/blog/[...slug].astro | 4 +- src/pages/notes/[...slug].astro | 4 +- 7 files changed, 105 insertions(+), 6 deletions(-) create mode 100644 src/components/TableOfContents.astro create mode 100644 src/components/TableOfContentsTree.astro create mode 100644 src/lib/headings.ts diff --git a/src/components/Sidebar.astro b/src/components/Sidebar.astro index 5aea431..597fa15 100644 --- a/src/components/Sidebar.astro +++ b/src/components/Sidebar.astro @@ -12,7 +12,6 @@ import SocialLinks from './SocialLinks.astro'; Home Blog About - Now