Organising Posts with Categories

Writing & Content

Categories are how readers navigate your blog. In Nano CMS each post belongs to one category, chosen from the dropdown in the editor.

Two layers

  1. Membership - the category on each post. This is what actually groups posts and builds the category archive page at /blog/<category>/.
  2. Category records - optional metadata you create under Categories in the admin. A record adds a friendly display name, a description, a hero image, and the image's alt text, plus a sort order for the homepage.

A category works fine with no record - its name is just derived from the slug. Adding a record is what makes the homepage card look polished.

On the homepage

The homepage shows a card for each category, ordered by the sort order you set (then alphabetically). Click one and you land on that category's archive - a paginated grid of its posts.

Tip: create your categories before writing posts, so they're ready to pick in the editor's dropdown.