Configuration
Configure site output, theme, menus, pagination, and social links.
Leaf reads config.toml from the current site directory.
title = "My Site"
base_url = "https://example.com"
content_dir = "content"
output_dir = "public"
theme = "default"
paginate = 5
author = "Nikolas"
Menus are TOML tables:
[menu.docs]
Name = "Docs"
Title = "Documentation"
URL = "/docs/"
weight = 1
[menu.news]
Name = "News"
Title = "Posts and release notes"
URL = "/chronicles/"
weight = 2
Lower weight entries appear first.
Pagination is also configured here:
paginate = 5
Use config for things that should belong to the site, not to a single page. The site title, menus, social links, and output directory are good examples.