feat: enable RSS and Atom feeds - #15
Merged
Merged
Conversation
Zola only inherits a theme's [extra] table, not its top-level settings, so tabi's generate_feeds had no effect. Enable it at the site level and emit both atom.xml and rss.xml so readers expecting a literal /rss.xml URL are covered. Also set a site description, which RSS 2.0 requires for the channel and which was otherwise rendering empty. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables web feeds for the blog.
What changed
config.tomlonly:generate_feeds = true— Zola only inherits a theme's[extra]table, not its top-level settings, so tabi's owngenerate_feedswas never taking effect.feed_filenames = ["atom.xml", "rss.xml"]— emits both, so readers expecting a literal/rss.xmlURL are covered.description— RSS 2.0 requires a channel description; it was rendering empty.What the build produces
/atom.xml— tabi's styled, human-readable Atom feed (this is the one the footer RSS icon links to)/rss.xml— Zola's built-in RSS 2.0 feed/tags/<tag>/atom.xmland/tags/<tag>/rss.xml, sincetagsalready hadfeed = true<link rel="alternate">tags for both feeds in every page's<head>Notes
<summary>only. Addfull_content_in_feed = trueunder[extra]if whole posts in the feed are preferred. The RSS feed already includes full content — that comes from Zola's built-in template and isn't configurable.{name = "authors", feed = true}: no post declares anauthorstaxonomy in its front matter, so the taxonomy is empty.Verified with a local
zola build.🤖 Generated with Claude Code