add blog archetype

pyrox.dev 4f219e07 92fef1a3

verified
Changed files
+46
src
_archetypes
blog
+14
src/_archetypes/blog.ts
···
+
export default function (title: string) {
+
const slug = title.replace(/[^\w\s\'\-\_]/g, "").replace(/\s+/g, "-")
+
.toLowerCase();
+
+
return {
+
path: `/blog/${slug}.md`,
+
content: {
+
title: title,
+
summary: "",
+
draft: true,
+
date: new Date(Date.now()).toISOString().split("T")[0],
+
},
+
};
+
}
+32
src/blog/hello-world.md
···
+
---
+
title: Hello World!
+
summary: 'The first real blog post'
+
draft: true
+
published: '2025-02-20'
+
---
+
+
Well, here we are again. This the 8th rewrite of this blog, and hopefully the final one, since Lume
+
is really nice.
+
+
This site was made over a fairly frantic ~10 days, just to get it done as fast as possible, and I
+
have to say, it has been a fun experience.
+
+
I hope to use this blog to share my thoughts on a bunch of different things, and making it from
+
scratch has allowed me to be **extremely** pendantic (in a positive way) relative to my previous
+
blog, which was using the premade [Congo](https://jpanther.github.io/congo/) theme for Hugo. While
+
it's a very nice theme, it didn't fit what I wanted out of a blog of my own.
+
+
Writing my own with [Lume](https://lume.land) has been a genuinely pleasant experience in
+
combination with [Vento](https://vento.js.org), which is made by the same author as Lume, making
+
this a very smooth and enjoyable experience to create.
+
+
I'll hopefully have some interesting things to share in the future, so stay tuned for that! In the
+
meantime, you can also check out the [Git Repo](https://git.pyrox.dev/pyrox/new-blog) for this blog,
+
which will obviously get updated as I update this blog(and it's auto-deployed to my hosting server,
+
neato!), and hopefully inspires you to create your own Lume-based blog.
+
+
<!-- deno-fmt-ignore-start -->
+
> [!note] Disclaimer!
+
> I'm by no means a wizard with this stuff, my code is pretty messy.
+
> However, I am happy with it, and that's what matters for me.
+
<!-- deno-fmt-ignore-end -->