Templates and styles
Change how the site and the PDF look.
The page template#
The template of the pages is templates/page.template. A project may have its own page.template and name it in :template. The values are written as %(name)s:
| Value | Is |
|---|---|
title, lead | the title and the sentence of the page |
sitename, tagline, logo, footer | the keys of the project |
sidebar | the navigation |
tocaside | the table of contents of the page |
body | the content |
prev, next | the links to the neighbours |
root, head | the path to the root and extra items for the head of the page |
Styles and script#
assets/style.css and assets/site.js are copied to the site. Files of the same names in the folder assets/ of the project are used in their place, so a project can change the colours or add behaviour.
The PDF#
assets/pdf.css is the print style. The assets/pdf.css of a project is added after it, and a pdfdoc.template in the project replaces the document of the PDF (%(css)s, %(cover)s, %(toc)s, %(parts)s).