Build a blog with Nera

In this tutorial you'll scaffold a Nera site, add a couple of posts, and list them newest-first on an index page.

1. Scaffold

npx @nera-static/nera new my-blog
cd my-blog

2. Add posts

Create pages/posts/hello-world.md:

---
layout: pages/default.pug
title: Hello world
description: My first post.
---

# Hello world

Welcome to my new Nera blog.

3. List them

A tiny local plugin under src/plugins/ can collect every post into app.posts, sorted by meta.createdAt. Your index layout then loops over that list. (This very site does exactly that for its tutorials — see src/plugins/tutorials-list.)

4. Preview

npm run dev

That's a working blog. From here, add Tags or pagination to grow it.