From e11bcaac558aab375f5adbfa253e264c4e7d4819 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 29 Jun 2024 03:44:59 -0700 Subject: [PATCH] fix: stop build crashing from blog link --- blog/2024/first-post/content.md | 15 ++++++--------- src/lib/components/Blog/Crumbs.svelte | 3 ++- src/lib/components/Navbar/Navbar.svelte | 4 ++-- src/routes/devlog/+page.svelte | 2 +- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/blog/2024/first-post/content.md b/blog/2024/first-post/content.md index 32d2477..07be2bc 100644 --- a/blog/2024/first-post/content.md +++ b/blog/2024/first-post/content.md @@ -1,8 +1,6 @@ ## Introduction Welcome! This blog is powered by a custom static site generator I made using SvelteKit. I'm working -on upgrades ([see: lorelei](https://github.com/couscousdude/lorelei)), but in the meantime, check -this out: > [!NOTE] @@ -76,8 +74,7 @@ HTML. The formatting is done mostly with a ## Introduction Welcome! This blog is powered by a custom static site generator I made using SvelteKit. I'm working -on upgrades ([see: lorelei](https://github.com/couscousdude/lorelei)), but in the meantime, check -this out:/first-post/post +on upgrades , but in the meantime, check this out:/first-post/post > [!NOTE] @@ -138,8 +135,8 @@ Code highlighting is also supported, via `highlight.js`. The `unified` plugin ecosystem is used to transform markdown into the HTML in this document. Check out the parser -[here](https://github.com/couscousdude/coredump/blob/main/src/lib/utils/parseMarkdown.ts). It -handles all the parsing server-side at build time, so these posts are a collection of mostly static -HTML. The Markdown files are transformed by `remark` and `rehype` into equivalent HTML, and then -styled with a -[custom CSS stylesheet](https://github.com/couscousdude/coredump/blob/main/src/lib/styles/markdown.css). +[here](https://github.com/couscousdude/youwen5/blob/main/src/lib/utils/parseMarkdown.ts). It handles +all the parsing server-side at build time, so these posts are a collection of mostly static HTML. +The Markdown files are transformed by `remark` and `rehype` into equivalent HTML, and then styled +with a +[custom CSS stylesheet](https://github.com/youwen5/coredump/blob/main/src/lib/styles/markdown.css). diff --git a/src/lib/components/Blog/Crumbs.svelte b/src/lib/components/Blog/Crumbs.svelte index 059af51..ee8614e 100644 --- a/src/lib/components/Blog/Crumbs.svelte +++ b/src/lib/components/Blog/Crumbs.svelte @@ -9,7 +9,8 @@ - The Coredump + The Coredump {#each trail as crumb} {crumb} diff --git a/src/lib/components/Navbar/Navbar.svelte b/src/lib/components/Navbar/Navbar.svelte index 16568f6..5740b7d 100644 --- a/src/lib/components/Navbar/Navbar.svelte +++ b/src/lib/components/Navbar/Navbar.svelte @@ -20,9 +20,9 @@ // current = segments[1] || 'home' // } - if (path === '/blog') { + if (path === '/devlog') { current = 'blog' - } else if (path.startsWith('/blog')) { + } else if (path.startsWith('devlog')) { current = 'blogpost' } else { const segments = path.split('/') diff --git a/src/routes/devlog/+page.svelte b/src/routes/devlog/+page.svelte index c7d9b36..ead754b 100644 --- a/src/routes/devlog/+page.svelte +++ b/src/routes/devlog/+page.svelte @@ -37,7 +37,7 @@ class="text-lg sm:text-xl md:text-2xl text-muted-foreground font-mono text-center sm:text-left" in:fly={{ duration: 300, y: -50, delay: 200 }} > - ramblings on computer science, math, games, and more. + a dev-log about projects and failures