From eea8c3e9be9edcf0a2429752d348b93f919d64f8 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Tue, 28 Apr 2026 21:49:57 +0200 Subject: [PATCH] Edit sidebar Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- src/components/NoteNavSidebar.astro | 115 ------------------- src/components/NoteNavSidebar.svelte | 158 +++++++++++++++++++++++++++ src/pages/notes/[...slug].astro | 3 +- todolist.txt | 2 - 4 files changed, 160 insertions(+), 118 deletions(-) delete mode 100644 src/components/NoteNavSidebar.astro create mode 100644 src/components/NoteNavSidebar.svelte delete mode 100644 todolist.txt diff --git a/src/components/NoteNavSidebar.astro b/src/components/NoteNavSidebar.astro deleted file mode 100644 index 9abdb86..0000000 --- a/src/components/NoteNavSidebar.astro +++ /dev/null @@ -1,115 +0,0 @@ ---- -import { getCategory, extractInlineHashtags } from "../utils/notes"; -import type { CollectionEntry } from "astro:content"; - -interface Props { - notes: CollectionEntry<"notes">[]; - currentEntry: CollectionEntry<"notes">; - categories: string[]; -} - -const { notes, currentEntry, categories } = Astro.props; ---- - - - - - - diff --git a/src/components/NoteNavSidebar.svelte b/src/components/NoteNavSidebar.svelte new file mode 100644 index 0000000..056710b --- /dev/null +++ b/src/components/NoteNavSidebar.svelte @@ -0,0 +1,158 @@ + + + diff --git a/src/pages/notes/[...slug].astro b/src/pages/notes/[...slug].astro index d6f2234..d632e66 100644 --- a/src/pages/notes/[...slug].astro +++ b/src/pages/notes/[...slug].astro @@ -3,7 +3,7 @@ import { getCollection, render } from "astro:content"; import Layout from "../../layouts/Layout.astro"; import { List, PanelRight } from "@lucide/astro"; import NoteTOC from "../../components/NoteTOC.astro"; -import NoteNavSidebar from "../../components/NoteNavSidebar.astro"; +import NoteNavSidebar from "../../components/NoteNavSidebar.svelte"; import NoteGraphSidebar from "../../components/NoteGraphSidebar.astro"; import NoteVars from "../../components/NoteVars.svelte"; import { @@ -199,6 +199,7 @@ const headings = extractHeadings(entry.body ?? ""); class="drawer-overlay" >