Complete reference for config.toml. See configuration concept for the mental model and examples. The tables below are auto-generated from the Zorto source code.

Top-level settings

Top-level site configuration, loaded from `config.toml`.

FieldTypeDefaultDescription
base_urlstringrequiredSite base URL without trailing slash (e.g. `"https://example.com"`).
titlestring""Site title, used in feeds, templates, and `llms.txt`.
descriptionstring""Site description, used in feeds and `llms.txt`.
default_languagestring"en"Default language code (default: `"en"`).
compile_sassbooltrueCompile SCSS files from `sass/` directory (default: `true`).
generate_feedboolfalseGenerate an Atom feed at `/atom.xml` (default: `false`).
generate_sitemapbooltrueGenerate a sitemap at `/sitemap.xml` (default: `true`).
generate_llms_txtbooltrueGenerate `llms.txt` and `llms-full.txt` (default: `true`).
themestringnullBuilt-in theme name (e.g. `"zorto"`, `"dkdc"`, `"default"`). When set, the theme provides default templates and SCSS. Local `templates/` and `sass/` files override theme defaults.
extratable{}Arbitrary extra values accessible in templates as `config.extra`.
generate_searchboolfalseGenerate a SQLite FTS5 search index at `/search.db` (default: `false`). When enabled, a `search.db` file is generated at build time containing a full-text search index of all pages. The client-side uses sql.js (SQLite WASM) to query the database in the browser.
generate_md_filesboolfalseGenerate `.md` output files alongside HTML for every page (default: `false`).
compile_all_themesboolfalseCompile CSS for all available themes as `style-{name}.css` (default: `false`). When enabled, every built-in theme's SCSS is compiled in addition to the active theme's `style.css`. Useful for theme preview/switcher pages.
cachecacheconfig""Code block execution cache configuration.
executeexecuteconfig""Code block execution configuration (timeouts, etc.).

[markdown]

Configuration for the Markdown rendering pipeline.

FieldTypeDefaultDescription
highlight_codebooltrueEnable syntax highlighting for fenced code blocks (default: `true`).
insert_anchor_linksstring"none"Insert anchor links on headings.
highlight_themestringnullSyntect theme name (default: `"base16-ocean.dark"`).
external_links_target_blankboolfalseOpen external links in a new tab.
external_links_no_followboolfalseAdd `rel="nofollow"` to external links.
external_links_no_referrerboolfalseAdd `rel="noreferrer"` to external links.
smart_punctuationboolfalseEnable smart punctuation (curly quotes, em dashes, etc.).

[[taxonomies]]

A taxonomy definition from `[[taxonomies]]` in `config.toml`.

FieldTypeDefaultDescription
namestringrequiredTaxonomy name (e.g. `"tags"`, `"categories"`).

[[content_dirs]]

Configuration for loading an external directory of plain markdown as content.

FieldTypeDefaultDescription
pathstringrequiredPath to the external directory (relative to site root).
url_prefixstringrequiredURL prefix for generated pages (e.g. `"docs"` → `/docs/...`).
templatestring"page.html"Template for generated pages (default: `"page.html"`).
section_templatestring"section.html"Template for generated sections (default: `"section.html"`).
sort_bystringnullSort order for pages within generated sections.
rewrite_linksboolfalseRewrite relative `.md` links in content to clean URL paths.
excludestring[][]Files to exclude (relative to the external directory, e.g. `"reference/cli.md"`). Excluded files are expected to exist as manual content in `content/`.

Section frontmatter #

Used in _index.md files:

FieldTypeDefaultDescription
titlestring""Section title
descriptionstring""Section description
sort_bystring"date"Sort pages by: "date", "title"
paginate_byint0Pages per pagination page (0 = no pagination)
templatestring"section.html"Custom template for this section
[extra]table{}Custom data for templates

Page frontmatter #

Used in regular .md files:

FieldTypeDefaultDescription
titlestring""Page title
datestring""Publication date (YYYY-MM-DD)
authorstring""Author name
descriptionstring""Page description for SEO
draftboolfalseExclude from production builds
slugstringfilenameOverride the URL slug
templatestring"page.html"Custom template
aliasesarray of strings[]Redirect old URLs to this page
sort_bystring"date"Sort child pages by: "date", "title"
paginate_byint0Pages per pagination page (0 = no pagination)
taxonomy fieldsarray of strings[]Taxonomy values as top-level arrays (e.g. tags = ["rust"])
[extra]table{}Custom data for templates