add post detection
This commit is contained in:
parent
75c2bc2755
commit
437aff51e7
4 changed files with 18 additions and 0 deletions
|
@ -14,6 +14,11 @@ def find_config(start: Path | None = None) -> Path | None:
|
|||
return None
|
||||
|
||||
|
||||
@dataclass
|
||||
class BlogConfig:
|
||||
dir: str = "blog"
|
||||
|
||||
|
||||
@dataclass
|
||||
class MarkdownConfig:
|
||||
image_labels: bool = True
|
||||
|
@ -44,6 +49,7 @@ class ZonaConfig:
|
|||
markdown: MarkdownConfig = field(default_factory=MarkdownConfig)
|
||||
theme: ThemeConfig = field(default_factory=ThemeConfig)
|
||||
build: BuildConfig = field(default_factory=BuildConfig)
|
||||
blog: BlogConfig = field(default_factory=BlogConfig)
|
||||
|
||||
@classmethod
|
||||
def from_file(cls, path: Path) -> "ZonaConfig":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue