added sitemap header
This commit is contained in:
parent
0e3e9d243d
commit
89e33e92c4
6 changed files with 27 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue