Skip to content

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

@Jieiku

Description

@Jieiku

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 %}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions