Skip to content

"feed_filename for default language is specified twice" even though it's not #2378

@Yaroslav-95

Description

@Yaroslav-95

Bug Report

Environment

Zola version: 0.17.2 and master

Expected Behavior

I have set feed_filename to a custom name "feed.xml" in my config.toml at the base or top section of the file, and haven't set it in my default language's section.

On Zola <= 0.17.1 this configuration works and generates a "feed.xml" file under each of the sections where I have generate_feed = true.

Current Behavior

Zola fails to serve or build the site with the following message:

Warning: config.toml contains both default language specific information at base and under section `[languages.en]`, which may cause merge conflicts. Please use only one to specify language specific information
Error: Failed to serve the site
Error: `feed_filename` for default language is specified twice, as "feed.xml" and "atom.xml".

Step to reproduce

Try to build a site with a custom feed_filename set at the top section with multiple languages with no feed_filename in the default language's section.

For an example of such a config.toml: https://git.yaroslavps.com/yaroslavps.com/tree/config.toml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions