From 8f299c9631d0e0e4932bc21eedc4d81b30c644ef Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Fri, 15 May 2026 16:49:36 -0700 Subject: [PATCH] Move now to the notes, add redirect. Fix bug with note links and capitalization --- astro.config.mjs | 4 ++++ src/components/NoteHierarchy.astro | 2 +- src/components/Sidebar.astro | 1 + src/components/SocialLinks.astro | 12 ++++++++++++ src/content/notes/now.md | 14 ++++++++++++++ src/content/page/about.md | 9 +-------- 6 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 src/content/notes/now.md diff --git a/astro.config.mjs b/astro.config.mjs index 00e0d24..87868de 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -13,4 +13,8 @@ export default defineConfig({ vite: { plugins: [], }, + + redirects: { + "/now": "/notes/now", + }, }); diff --git a/src/components/NoteHierarchy.astro b/src/components/NoteHierarchy.astro index 76f9e41..083ca56 100644 --- a/src/components/NoteHierarchy.astro +++ b/src/components/NoteHierarchy.astro @@ -41,7 +41,7 @@ const pathname = Astro.url.pathname.replace(import.meta.env.BASE_URL, '/'); return (
- + {node.title || leader}
diff --git a/src/components/Sidebar.astro b/src/components/Sidebar.astro index 597fa15..5aea431 100644 --- a/src/components/Sidebar.astro +++ b/src/components/Sidebar.astro @@ -12,6 +12,7 @@ import SocialLinks from './SocialLinks.astro'; Home Blog About + Now