added sitemap header

This commit is contained in:
Daniel Fichtinger 2025-07-02 15:01:13 -04:00
parent 0e3e9d243d
commit 89e33e92c4
6 changed files with 27 additions and 7 deletions

View file

@ -14,6 +14,9 @@ def find_config(start: Path | None = None) -> Path | None:
return None
SitemapConfig = dict[str, str]
@dataclass
class BlogConfig:
dir: str = "blog"
@ -53,6 +56,8 @@ class ZonaConfig:
title: str = "Zona Blog"
base_url: str = "https://example.com"
language: str = "en"
# dictionary where key is name, value is url
sitemap: SitemapConfig = field(default_factory=lambda: {"Home": "/"})
# list of globs relative to content that should be ignored
ignore: list[str] = field(default_factory=lambda: IGNORELIST)
markdown: MarkdownConfig = field(default_factory=MarkdownConfig)