+++ title = "templates and sections" date = 2026-04-18 [taxonomies] tags = ["zola", "templates"] +++
zola uses tera for templating. this site uses four templates:
base.html— shared layout with header, nav, footer, and CSSindex.html— homepage that lists postssection.html— section pages (like the posts listing)page.html— individual content pages
content organization
content is organized in sections (folders with _index.md):
content/
_index.md # homepage
about.md # standalone page
posts/
_index.md # posts section
hello-world.md # a posteach section can set sort_by = "date" in its frontmatter to order pages chronologically.
frontmatter
every content file starts with TOML frontmatter between +++ markers:
+++
title = "my page"
date = 2026-04-19
description = "optional description"
+++ v2
commit 5046711
message edit templates-and-sections.md via macOS
author anton
date Apr 19, 2026
size 938 B