From 0c8370ee8ab472648fddf41db258a504482ac34f Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 7 Apr 2024 02:25:34 -0700 Subject: [PATCH] feat: add toc header on mobile instead of card --- src/lib/components/Navbar/Drawer.svelte | 2 +- src/lib/components/Toc/TocHeader.svelte | 56 ++++++++++++++++++++++ src/routes/blog/+page.ts | 26 ---------- src/routes/blog/[year]/[slug]/+page.svelte | 16 +++---- static/test.md | 2 + 5 files changed, 67 insertions(+), 35 deletions(-) create mode 100644 src/lib/components/Toc/TocHeader.svelte diff --git a/src/lib/components/Navbar/Drawer.svelte b/src/lib/components/Navbar/Drawer.svelte index cde6948..85ba6ce 100644 --- a/src/lib/components/Navbar/Drawer.svelte +++ b/src/lib/components/Navbar/Drawer.svelte @@ -8,7 +8,7 @@ import ThemePicker from '../ThemePicker.svelte'; - +