Series: Start here · Part 1
Germany
Write your first trip
A post is one Markdown file in pages/posts/ with a few lines of frontmatter. This one uses every key the theme reads.
- Duration
- 1 evening
- Getting there
- Text editor
- Files
- 1
- Spent
- €0
One file per trip
Every post is a Markdown file in pages/posts/. The file name becomes the
address: lisbon.md is published as /posts/lisbon.html. Copy this one to
start:
---
layout: pages/post.pug
title: Three days in Lisbon
description: Trams, tiles and one very steep street.
date: 2026-10-01
location: Portugal
tags: [Portugal]
is_post: true
---
## Day one
Start the text at `##`: the title above is the page's only first-level
heading.
The frontmatter
The frontmatter of this post sets every key the theme reads:
layout: pages/post.pugmakes the page a post: it is listed on the home page, in the archive, in the feed and in the search.dateorders the posts: the newest one is the boarding pass on the home page. Always set it, since a file's own date changes whenever the file is copied.updatedadds "Updated" to the author line.descriptionis the text on a card and the summary in the feed;leadis the larger line under the title.locationis the place: the chip on the post's card and in its header, the caption of its print on the home page. Make it one of the post'stagstoo, so its passport stamp leads to the same place, here Germany.tagslinks the post to a tag page per tag. The home page lists the newest four posts tagged withblog.highlight_tagfromconfig/theme.yamlon the coral band.seriesandseries_partjoin posts into a series: the line above the title and the list of parts under the post, ordered byseries_part.imageandimage_altgive the post a cover above the text, a picture on its card and a print on the home page. Put the file intheme/assets/images/; the alt text says what the picture shows. The part after?crops the photograph around its subject:ratio=4:3is the shape,focus=50,33the point to keep, in per cent from the left and from the top. This post has no picture, so the two lines are comments.factsare the four coloured tiles under the cover, each alabeland avalue. Use at most four, and write the unit into the value:9 days,Night train,€780. The card shows the first three.is_post: truemarks the post for search engines: it gets aBlogPostingin the structured data of its page.
The author line reads author.name in config/theme.yaml; a post that sets
author names someone else.
Preview and build
Run nera dev to see the post while you write, and nera build --check to
build the blog into public/ and check every page. Delete this post once
your own first trip is out.