Docs · 3

Edit the content by hand

Where the words, prices, links and pictures of a Templix title live, and how to change them without opening a component.

20 minutes to learn

Templix titles keep content and code apart. Components only lay things out. Everything a visitor reads is in src/content, in two plain formats: YAML for settings and lists, Markdown for longer text.

Where things are

You want to change Look in
Name, contact details, navigation, footer src/content/settings/site.yaml
The text of a page src/content/pages/
Repeating items such as services, dishes or case studies their own folder in src/content/
Photos src/assets/, next to the content that uses them
Films and clips public/media/, replaced with the title’s own command
Colours and fonts the tokens at the top of src/styles/

Each title’s docs/content.md lists every file and every field.

Three rules that save time

Quote text that contains a colon. In YAML, title: Open: every day breaks. Write title: 'Open: every day'.

Keep the file names of pictures, or update the path. A content file points at its picture by path. If the path is wrong the check tells you which one.

Run the check after every round.

npm run check

It catches a missing field or a broken link between two files before the site is built.

Replacing films

Most cinematic titles ship one command that takes your clip and produces every size and still the page needs. The product page names it under “Files and extras” and the title’s docs/ explain how to film or generate a clip that fits.

Black Friday

30% offevery template.

Every single template in the store, with the code below at checkout. Until 5 December.

Your code
Black Friday ends in00days00hrs00min00sec