Part 3 of the documentation.
Templates
A template is an HTML file with a few marks in it. Verso reads those marks to know what can be edited, what repeats, what is shared, and what only shows when it has something to say.
In this part.
- How templates work What a template is, everything it can contain, and what Verso adds to the page.
- Fields Write a field where its value goes, as name:type:modifiers.
- Rich text fields Formatted text with only the tools you allow, stored as clean HTML.
- Image and colour fields Images go in attributes and are sized at build. Colour fields pick one of your design colours.
- Lists of pages Repeat part of a template for each page in a folder, sorted, filtered, limited and counted.
- Conditions Show part of a template only when a field has something in it, is empty, or has a certain value.
- Page references Show a page’s settings and fields: this page, its parent, each page in a list, or the pages of a split list.
- Repeaters Lists of items that belong to a page, like a team or questions and answers, edited right on the page.
- Tags and tag pages Tag pages, list them by tag, and give each tag a page of its own.
- Pages of a list Split a long list into numbered pages, with next and previous links.
- Parts Share HTML between templates, and pass values in so a part works like a component.
- Feeds and sub-folders RSS feeds for each channel, and building a site that lives in a sub-folder of a domain.