Compare commits
No commits in common. "main" and "rss" have entirely different histories.
4 changed files with 3 additions and 5 deletions
|
@ -3,7 +3,6 @@
|
||||||
- Added RSS feed generation.
|
- Added RSS feed generation.
|
||||||
- Added default post description to configuration.
|
- Added default post description to configuration.
|
||||||
- Added time-of-day support to post `date` frontmatter parsing.
|
- Added time-of-day support to post `date` frontmatter parsing.
|
||||||
- `zona init` now only writes `footer.md` to the templates directory.
|
|
||||||
|
|
||||||
# 1.2.1
|
# 1.2.1
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "zona"
|
name = "zona"
|
||||||
version = "1.2.2"
|
version = "1.2.1"
|
||||||
description = "Opinionated static site generator."
|
description = "Opinionated static site generator."
|
||||||
license = "BSD-3-Clause "
|
license = "BSD-3-Clause "
|
||||||
license-files = ["LICENSE"]
|
license-files = ["LICENSE"]
|
||||||
|
|
|
@ -229,7 +229,7 @@ class ZonaBuilder:
|
||||||
self._build()
|
self._build()
|
||||||
if self.config.feed.enabled:
|
if self.config.feed.enabled:
|
||||||
rss = self.generate_feed()
|
rss = self.generate_feed()
|
||||||
path = self.layout.output / self.config.feed.path
|
path = self.layout.content / self.config.feed.path
|
||||||
util.ensure_parents(path)
|
util.ensure_parents(path)
|
||||||
path.write_bytes(rss)
|
path.write_bytes(rss)
|
||||||
self.fresh = False
|
self.fresh = False
|
||||||
|
|
|
@ -125,8 +125,7 @@ def initialize_site(root: Path | None = None):
|
||||||
layout = Layout.from_input(root=root, validate=False)
|
layout = Layout.from_input(root=root, validate=False)
|
||||||
# load template resources
|
# load template resources
|
||||||
logger.debug("Loading internal templates.")
|
logger.debug("Loading internal templates.")
|
||||||
# only write the footer
|
templates = util.get_resources("templates")
|
||||||
templates = [util.get_resource("templates/footer.md")]
|
|
||||||
logger.debug("Loading internal static content.")
|
logger.debug("Loading internal static content.")
|
||||||
static = util.get_resources("content")
|
static = util.get_resources("content")
|
||||||
for dir, resources in [
|
for dir, resources in [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue