Example Blog Post
This is an example blog post to demonstrate how the new blog system works.
Writing a New Post
To create a new blog post, simply:
- Create a new
.mdfile in thesrc/blog/directory - Add frontmatter with
title,date, andlayout: post.njk - Write your content in markdown
- Run
npm startto preview ornpm run buildto generate the static site
Formatting
You can use all standard markdown formatting:
- Bold text
- Italic text
- Links
- Code blocks
- And more!
// Example code block
function hello() {
console.log("Hello, world!");
}
That's it! Your post will automatically appear on the blog listing page, sorted by date.