diff --git a/.gitignore b/.gitignore index e466824..db93f1c 100644 --- a/.gitignore +++ b/.gitignore @@ -25,5 +25,4 @@ vite.config.ts.timestamp-* bun.lock Update.md PROJECT.md -content/blog/ blogs/ diff --git a/content/blog/building-this-blog.md b/content/blog/building-this-blog.md new file mode 100644 index 0000000..21750c8 --- /dev/null +++ b/content/blog/building-this-blog.md @@ -0,0 +1,31 @@ +--- +title: Building a Native Blog Into My Site +author: Sir Blob +date: 2026-07-19 +tags: meta, svelte, sveltekit +excerpt: Why I ripped out the old blog redirect and wrote a small markdown blog engine instead. +--- + +For a while, clicking Blog in the navbar just sent you off to a separate site. It worked, but it never felt like *part* of this project. + +## Why bother + +A few reasons pushed me to build this in: + +- One theme, one codebase, one deploy +- Full control over the reading experience +- An excuse to write a tiny markdown renderer from scratch + +## How it works + +Every post is a plain markdown file that lives in the `blogs` directory at the root of the project. Each file starts with a small frontmatter block containing a title, a date, a comma separated list of tags, and a short excerpt. Everything after that block is just markdown. + +Headings, `inline code`, [links](https://svelte.dev), lists, blockquotes, and fenced code blocks all render into the same terminal styled theme as the rest of the site. + +```js +function greet(name) { + return `Hello, ${name}!`; +} +``` + +Thanks for reading the first post. diff --git a/content/blog/personalweb.md b/content/blog/personalweb.md new file mode 100644 index 0000000..c949c63 --- /dev/null +++ b/content/blog/personalweb.md @@ -0,0 +1,31 @@ +--- +title: Personal Website v5.0.0 +author: Sir Blob +date: 2026-07-10 +tags: meta, svelte, sveltekit +excerpt: Why I ripped out the old blog redirect and wrote a small markdown blog engine instead. +--- + +For a while, clicking Blog in the navbar just sent you off to a separate site. It worked, but it never felt like *part* of this project. + +## Why bother + +A few reasons pushed me to build this in: + +- One theme, one codebase, one deploy +- Full control over the reading experience +- An excuse to write a tiny markdown renderer from scratch + +## How it works + +Every post is a plain markdown file that lives in the `blogs` directory at the root of the project. Each file starts with a small frontmatter block containing a title, a date, a comma separated list of tags, and a short excerpt. Everything after that block is just markdown. + +Headings, `inline code`, [links](https://svelte.dev), lists, blockquotes, and fenced code blocks all render into the same terminal styled theme as the rest of the site. + +```js +function greet(name) { + return `Hello, ${name}!`; +} +``` + +Thanks for reading the first post.