Apr 24, 2026 938 B markdown v2

+++ 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 CSS

  • index.html — homepage that lists posts

  • section.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 post

each 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"
+++