From 9c0bbc4b77bf9410e1f2675b7ad5032ccb0726f9 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 7 May 2026 20:16:01 +0200 Subject: [PATCH] edit sidebars Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- src/components/NoteGraphSidebar.astro | 30 +++++++- ...avSidebar.svelte => NoteNavContent.svelte} | 55 +------------- src/components/NoteNavSidebar.astro | 26 +++++++ src/pages/notes/[...slug].astro | 75 +++++-------------- src/pages/notes/[category].astro | 14 ++-- src/styles/global.css | 15 +++- src/utils/notes.ts | 28 +++++++ 7 files changed, 123 insertions(+), 120 deletions(-) rename src/components/{NoteNavSidebar.svelte => NoteNavContent.svelte} (74%) create mode 100644 src/components/NoteNavSidebar.astro diff --git a/src/components/NoteGraphSidebar.astro b/src/components/NoteGraphSidebar.astro index 71ceadf..ae91926 100644 --- a/src/components/NoteGraphSidebar.astro +++ b/src/components/NoteGraphSidebar.astro @@ -10,9 +10,10 @@ interface Props { graphEdges: { from: string; to: string }[]; forwardLinks: CollectionEntry<"notes">[]; backlinks: CollectionEntry<"notes">[]; + externalLinks: { url: string; label: string }[]; } -const { entry, graphNodes, graphEdges, forwardLinks, backlinks } = Astro.props; +const { entry, graphNodes, graphEdges, forwardLinks, backlinks, externalLinks } = Astro.props; ---