From f3f78909629e7ac73ca2c1c1931be6bd77ff96cb Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Mon, 16 Sep 2024 23:33:02 -0500 Subject: [PATCH] feat: Vertical navbar and blog layout --- src/app.css | 1 + src/content/post/placeholder1.md | 2 ++ src/lib/sitemap.ts | 6 ++++ src/routes/+layout.svelte | 51 ++++++++++++++++++++++---------- src/routes/+page.svelte | 20 +++++++++---- src/routes/Navbar.svelte | 26 ++++++++++++++++ src/routes/post/+page.svelte | 13 ++++---- src/routes/sitemap.ts | 6 ---- 8 files changed, 91 insertions(+), 34 deletions(-) create mode 100644 src/lib/sitemap.ts create mode 100644 src/routes/Navbar.svelte delete mode 100644 src/routes/sitemap.ts diff --git a/src/app.css b/src/app.css index 61b1606..f0d14f3 100644 --- a/src/app.css +++ b/src/app.css @@ -81,5 +81,6 @@ } html { scroll-behavior: smooth; + overscroll-behavior: none; } diff --git a/src/content/post/placeholder1.md b/src/content/post/placeholder1.md index 03dc7a9..f97a59e 100644 --- a/src/content/post/placeholder1.md +++ b/src/content/post/placeholder1.md @@ -12,6 +12,8 @@ Here is some placeholder text ### 3rd level heading #### 4th level heading +Markdown `inline code` + > This is a quote ```python diff --git a/src/lib/sitemap.ts b/src/lib/sitemap.ts new file mode 100644 index 0000000..34c2365 --- /dev/null +++ b/src/lib/sitemap.ts @@ -0,0 +1,6 @@ +export const routes: { route: string, name: string, inactive?: boolean }[] = [ + { route: "/", name: "Home" }, + { route: "/post", name: "Blog" }, + { route: "/art", name: "Art", inactive: true }, + { route: "/archives", name: "Archives" }, +]; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index c1ece00..3401cab 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,30 +1,33 @@ {#if $page.url.pathname != "/"} -