-
Notifications
You must be signed in to change notification settings - Fork 972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to generate RSS feed #2560
Comments
I'm not sure if this is the same issue but there is #2400 |
Similar issue for me! My RSS feed stopped working completely since I updated zola, it returns a 404 page |
Edit: Sorry, disregard this. I very stupidly forgot to actually update my own local install of Zola, thinking that the CI version number update would actually apply locally. This works on my end now. Is there some sort of MSRV equivalent for Zola so it can throw an error if the installed version is below that?
- feed_filename = "rss.xml"
+ feed_filenames = ["rss.xml"]
|
Fixed for me since 0.19.2, by adding Thank you! I’m closing the issue. |
Bug Report
Hello,
I have a multilingual website generated with Zola. I want Zola to generate an RSS feed (and optionally an Atom feed) for the website’s blog section
/blog/
at/blog/rss.xml
using the built-in RSS template. I can’t do that anymore.I can’t tell which release broke it, though it’s older than v0.19. I’ve been patching Zola locally since more than a year to work around this bug… and I’ve been procrastinating to post the issue until now. My apologies.
Environment
Zola version: 0.19.1
Expected Behavior
The RSS feed should be generated in the specified section.
Current Behavior
The feed is not generated (404). The atom feed, however, is getting generated.
Step to reproduce
May help :
Current configuration:
generate_feeds
is set to false in[languages.fr]
and[languages.en]
sections (config.toml).generate_feeds
is set to true incontent/blog/_index.md
andcontent/blog/_index.en.md
.In that configuration,
/blog/atom.xml
is generated but/blog/rss.xml
is not, which is expected behavior sincefeed_filenames
is not set, thus defaulting toatom.xml
.Attempt 1
Adding the option
feed_filenames = ["rss.xml"]
to the following sections inconfig.toml
:[languages.fr]
[languages.en]
Result : no effect. For some reason, the Atom feed is still generated while the RSS feed is not.
Attempt 2
Adding the option
feed_filenames = ["rss.xml"]
to the root section inconfig.toml
:Result : triggers the following error message
Attempt 3
Adding the option
feed_filenames = ["rss.xml"]
to the root section and the following sections inconfig.toml
:[languages.fr]
[languages.en]
Result : triggers the following error message
Attempt 4
Adding the option
feed_filenames = ["rss.xml"]
to the blog sectionconfig/blog/_index.{en,md}
.Result : triggers the following error message (invalid configuration option)
Patch
I guess the default value
feed_filenames = ["atom.xml"]
cannot be overwritten when using language sections.Here’s my Zola patch to locally work around this issue:
~> git diff
diff --git a/components/config/src/config/languages.rs b/components/config/src/config/languages.rs
index eca7bc95..cee07b9d 100644
diff --git a/components/config/src/config/mod.rs b/components/config/src/config/mod.rs
index 57ff1a80..9b7b3d70 100644
That said, I’m just editing the defaults to fit my needs. It doesn’t actually fix the bug.
The text was updated successfully, but these errors were encountered: