Writing a New Blog Post
A quick reference for adding a post under a sub-folder.
This post lives at content/blog/guides/writing-a-post.md, so it is published at /blog/guides/writing-a-post/ — the URL sub-path reflects the folder it sits in.
Steps
- Create a
.mdfile anywhere undercontent/blog/. - Add a frontmatter block with at least a
title. - Write the body in Markdown.
- Rebuild the site — the post is picked up automatically, no registration needed elsewhere.
Images
Reference images with a relative path, and place the actual file under public/blog/ at the matching path, e.g. public/blog/guides/cover.png for a post at content/blog/guides/writing-a-post.md.