← Back to all posts

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:

  1. Create a new .md file in the src/blog/ directory
  2. Add frontmatter with title, date, and layout: post.njk
  3. Write your content in markdown
  4. Run npm start to preview or npm run build to generate the static site

Formatting

You can use all standard markdown formatting:

// 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.