mirror of
https://github.com/youwen5/site.git
synced 2024-11-24 17:33:51 -08:00
fix: stop build crashing from blog link
This commit is contained in:
parent
e9c3eb4538
commit
e11bcaac55
4 changed files with 11 additions and 13 deletions
|
@ -1,8 +1,6 @@
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
Welcome! This blog is powered by a custom static site generator I made using SvelteKit. I'm working
|
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 -->
|
<!-- prettier-ignore -->
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
|
@ -76,8 +74,7 @@ HTML. The formatting is done mostly with a
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
Welcome! This blog is powered by a custom static site generator I made using SvelteKit. I'm working
|
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
|
on upgrades , but in the meantime, check this out:/first-post/post
|
||||||
this out:/first-post/post
|
|
||||||
|
|
||||||
<!-- prettier-ignore -->
|
<!-- prettier-ignore -->
|
||||||
> [!NOTE]
|
> [!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
|
The `unified` plugin ecosystem is used to transform markdown into the HTML in this document. Check
|
||||||
out the parser
|
out the parser
|
||||||
[here](https://github.com/couscousdude/coredump/blob/main/src/lib/utils/parseMarkdown.ts). It
|
[here](https://github.com/couscousdude/youwen5/blob/main/src/lib/utils/parseMarkdown.ts). It handles
|
||||||
handles all the parsing server-side at build time, so these posts are a collection of mostly static
|
all the parsing server-side at build time, so these posts are a collection of mostly static HTML.
|
||||||
HTML. The Markdown files are transformed by `remark` and `rehype` into equivalent HTML, and then
|
The Markdown files are transformed by `remark` and `rehype` into equivalent HTML, and then styled
|
||||||
styled with a
|
with a
|
||||||
[custom CSS stylesheet](https://github.com/couscousdude/coredump/blob/main/src/lib/styles/markdown.css).
|
[custom CSS stylesheet](https://github.com/youwen5/coredump/blob/main/src/lib/styles/markdown.css).
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
|
|
||||||
<Breadcrumb.Root class="mb-4">
|
<Breadcrumb.Root class="mb-4">
|
||||||
<Breadcrumb.List>
|
<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 />
|
<Breadcrumb.Separator />
|
||||||
{#each trail as crumb}
|
{#each trail as crumb}
|
||||||
<Breadcrumb.Item>{crumb}</Breadcrumb.Item>
|
<Breadcrumb.Item>{crumb}</Breadcrumb.Item>
|
||||||
|
|
|
@ -20,9 +20,9 @@
|
||||||
// current = segments[1] || 'home'
|
// current = segments[1] || 'home'
|
||||||
// }
|
// }
|
||||||
|
|
||||||
if (path === '/blog') {
|
if (path === '/devlog') {
|
||||||
current = 'blog'
|
current = 'blog'
|
||||||
} else if (path.startsWith('/blog')) {
|
} else if (path.startsWith('devlog')) {
|
||||||
current = 'blogpost'
|
current = 'blogpost'
|
||||||
} else {
|
} else {
|
||||||
const segments = path.split('/')
|
const segments = path.split('/')
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
class="text-lg sm:text-xl md:text-2xl text-muted-foreground font-mono text-center sm:text-left"
|
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 }}
|
in:fly={{ duration: 300, y: -50, delay: 200 }}
|
||||||
>
|
>
|
||||||
ramblings on computer science, math, games, and more.
|
a dev-log about projects and failures
|
||||||
</p>
|
</p>
|
||||||
<span
|
<span
|
||||||
class="flex flex-wrap items-center mt-8 md:hidden"
|
class="flex flex-wrap items-center mt-8 md:hidden"
|
||||||
|
|
Loading…
Reference in a new issue