From d8d1e991c2517ef3180856279df80f8779433e3f Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 18 Jul 2025 00:23:51 -0400 Subject: [PATCH 1/4] feat: init now only includes footer template --- src/zona/layout.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zona/layout.py b/src/zona/layout.py index e912dd0..f4c7311 100644 --- a/src/zona/layout.py +++ b/src/zona/layout.py @@ -125,7 +125,8 @@ def initialize_site(root: Path | None = None): layout = Layout.from_input(root=root, validate=False) # load template resources logger.debug("Loading internal templates.") - templates = util.get_resources("templates") + # only write the footer + templates = [util.get_resource("templates/footer.md")] logger.debug("Loading internal static content.") static = util.get_resources("content") for dir, resources in [ From 312818d8a6e098494e2f5254cfbd1240b2b7cd84 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 18 Jul 2025 00:38:32 -0400 Subject: [PATCH 2/4] doc: updated changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 269d2ab..9f6eed9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Added RSS feed generation. - Added default post description to configuration. - Added time-of-day support to post `date` frontmatter parsing. +- `zona init` now only writes `footer.md` to the templates directory. # 1.2.1 From 182b30a4efcd4e9c9898a84b511bedf904afad00 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 18 Jul 2025 00:41:04 -0400 Subject: [PATCH 3/4] fix: rss feed is no longer written to content directory --- src/zona/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zona/builder.py b/src/zona/builder.py index 37a3bd1..dd9509f 100644 --- a/src/zona/builder.py +++ b/src/zona/builder.py @@ -229,7 +229,7 @@ class ZonaBuilder: self._build() if self.config.feed.enabled: rss = self.generate_feed() - path = self.layout.content / self.config.feed.path + path = self.layout.output / self.config.feed.path util.ensure_parents(path) path.write_bytes(rss) self.fresh = False From 66a3eb7f8c89242a393e188549b415b0a5764586 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 18 Jul 2025 00:42:45 -0400 Subject: [PATCH 4/4] release: 1.2.2 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b6d7de5..185c12d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "zona" -version = "1.2.1" +version = "1.2.2" description = "Opinionated static site generator." license = "BSD-3-Clause " license-files = ["LICENSE"]