Compare commits

..

4 commits
rss ... main

Author SHA1 Message Date
66a3eb7f8c release: 1.2.2
Some checks failed
/ publish (push) Successful in 19s
/ test-build (push) Failing after 27s
2025-07-18 00:42:45 -04:00
182b30a4ef fix: rss feed is no longer written to content directory
Some checks failed
/ test-build (push) Failing after 19s
2025-07-18 00:41:04 -04:00
312818d8a6 doc: updated changelog
Some checks failed
/ test-build (push) Failing after 18s
2025-07-18 00:38:32 -04:00
d8d1e991c2 feat: init now only includes footer template
Some checks failed
/ test-build (push) Failing after 25s
2025-07-18 00:23:51 -04:00
4 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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"]

View file

@ -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

View file

@ -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 [