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
|
||||
|
||||
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).
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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('/')
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue