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 config.generate_feeds not accessible from template files. #2537

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

Zola 0.19 config.generate_feeds not accessible from template files. #2537

Jieiku opened this issue Jun 21, 2024 · 2 comments

Comments

@Jieiku
Copy link
Contributor

Jieiku commented Jun 21, 2024

Bug Report

I believe this is related to #2477

Environment

Zola version: 0.19

Expected Behavior

config.generate_feeds accessible via templates

Current Behavior

config.generate_feeds is not accessible

Step to reproduce

git clone https://github.com/Jieiku/feeds
cd feeds
~/zola serve

look at the generated page and the source in templates/index.html

templates/index.html is simply:

{# Works in 0.18.0+: #}
  {%- if config.generate_feed %}
    0.18: {{ config.generate_feed }}
  {%- endif %}

{# Does not work in 0.19.0: #}
  {%- if config.generate_feeds %}
    0.19: {{ config.generate_feeds }}
  {%- endif %}

@Jieiku
Copy link
Contributor Author

Jieiku commented Jun 21, 2024

This appears to actually be even stranger than I originally thought.

setting generate_feeds = true in config.toml and using zola 0.19 then makes generate_feed have a value of true even though it is nowhere to be found in config.toml, meanwhile generate_feeds is either inaccessible or false.

@Keats
Copy link
Collaborator

Keats commented Jun 21, 2024

Ah yes it's mispelled in the config serializer 🤦

generate_feed: options.generate_feeds,

I'll fix that

Keats added a commit that referenced this issue Jun 21, 2024
@Keats Keats closed this as completed in 233e1cd Jun 24, 2024
berdandy pushed a commit to berdandy/azola that referenced this issue Sep 17, 2024
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