To make a new blog post, do the following:
-
In
src/routes/blog
, create a new file with the name of the post, e.g.my-new-post.md
.- This slug will be used as a foreign key for other purposes, so make sure you're happy with it, as it's a mission to change.
-
Add frontmatter metadata to the post using YAML. Refer to
src/lib/interfaces/blog/index.ts
for the types allowed. -
After adding your content, create a thumbnail by saving a
.webp
file to thestatic
directory at the root of the project. The name of the file should be the same as the slug of the post, e.g.my-new-post.webp
.