Skip to content
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

Zola 0.19 no longer builds/serves if I enable feeds. #2534

Closed
Jieiku opened this issue Jun 21, 2024 · 2 comments
Closed

Zola 0.19 no longer builds/serves if I enable feeds. #2534

Jieiku opened this issue Jun 21, 2024 · 2 comments

Comments

@Jieiku
Copy link
Contributor

Jieiku commented Jun 21, 2024

Bug Report

feeds worked fine with 0.18

I had to edit generate_feed = true to generate_feeds = true

however after doing so I see the following errors:

Error: Failed to serve the site
Error: Failed to render page '/home/jieiku/.dev/abridge/content/pages/contact.md'
Error: Reason: Failed to render 'pages.html' (error happened in 'base.html').
Error: Reason: Test call 'containing' failed
Error: Reason: Tester `containing` was called on an undefined variable

If I set generate_feeds = false then the site builds fine.

I assume this is related to this: #2477 but I cannot say for sure. I am not using a custom feed template, I have always just let it build the feed using the default template.

Environment

Zola version: 0.19.0

Expected Behavior

the site to build or serve, or maybe to give a more detailed error.

Current Behavior

env RUST_BACKTRACE=1 ~/zola serve
Building site...
Checking all internal links with anchors.
> Successfully checked 7 internal link(s) with anchors.
-> Creating 29 pages (4 orphan) and 13 sections
Error: Failed to serve the site
Error: Failed to render section '/home/jieiku/.dev/abridge/content/archive/_index.md'
Error: Reason: Failed to render 'archive.html' (error happened in 'base.html').
Error: Reason: Test call 'containing' failed
Error: Reason: Tester `containing` was called on an undefined variable

Step to reproduce

git clone https://github.com/Jieiku/abridge
cd abridge

edit config.toml replacing occurrances of generate_feed = true with generate_feeds = true

zola serve
zola build

@Jieiku Jieiku changed the title Zola 0.18 to 0.19 no longer builds/serves if I enable feeds. Zola 0.19 no longer builds/serves if I enable feeds. Jun 21, 2024
@Keats
Copy link
Collaborator

Keats commented Jun 21, 2024

You have a bunch of {% if config.feed_filename is containing('atom') %} but it's now config.feed_filenames and is an array.

Relevant lines from the Changelog:

Changed config options named generate_feed to generate_feeds (both in config.toml and in section front-matter)
Changed config option feed_filename: String to feed_filenames: Vec<String>

@Keats Keats closed this as completed Jun 21, 2024
@Jieiku
Copy link
Contributor Author

Jieiku commented Jun 21, 2024

I missed that the feed_filename is now an array. Thank You!

For anyone else that finds this issue report it is a good idea to just search your entire site/theme for the word feed:

grep --color --include=\*.html -rnw "/home/jieiku/.dev/abridge/" -e ".*feed.*"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants