update default config

This commit is contained in:
Daniel Fichtinger 2025-06-23 22:19:40 -04:00
parent 42a8b51914
commit 41eacc1a85
2 changed files with 4 additions and 2 deletions

View file

@ -31,13 +31,16 @@ class BuildConfig:
include_drafts: bool = False
IGNORELIST = [".git", ".env", ".marksman.toml"]
@dataclass
class ZonaConfig:
title: str = "Zona Blog"
base_url: str = "https://example.com"
language: str = "en"
# list of globs relative to content that should be ignored
ignore: list[str] = field(default_factory=lambda: [".env", ".git"])
ignore: list[str] = field(default_factory=lambda: IGNORELIST)
markdown: MarkdownConfig = field(default_factory=MarkdownConfig)
theme: ThemeConfig = field(default_factory=ThemeConfig)
build: BuildConfig = field(default_factory=BuildConfig)

View file

@ -32,7 +32,6 @@ class ZonaRenderer(HTMLRenderer):
@override
def render_link(self, element: Link):
href = element.dest
print(f"Rendering link, original: {href}")
assert isinstance(href, str)
if self.resolve:
cur = Path(href)