fix: stop build crashing from blog link

This commit is contained in:
Youwen Wu 2024-06-29 03:44:59 -07:00
parent e9c3eb4538
commit e11bcaac55
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
4 changed files with 11 additions and 13 deletions

View file

@ -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:
<!-- prettier-ignore -->
> [!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
<!-- prettier-ignore -->
> [!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).

View file

@ -9,7 +9,8 @@
<Breadcrumb.Root class="mb-4">
<Breadcrumb.List>
<Breadcrumb.Item><Breadcrumb.Link href="/blog">The Coredump</Breadcrumb.Link></Breadcrumb.Item>
<Breadcrumb.Item><Breadcrumb.Link href="/devlog">The Coredump</Breadcrumb.Link></Breadcrumb.Item
>
<Breadcrumb.Separator />
{#each trail as crumb}
<Breadcrumb.Item>{crumb}</Breadcrumb.Item>

View file

@ -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('/')

View file

@ -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
</p>
<span
class="flex flex-wrap items-center mt-8 md:hidden"