Skip to content

Site fails to build: Variable config.default_language not found in context while rendering 'index.html' #758

Closed
@Bauxitedev

Description

@Bauxitedev

See getzola/zola#1442 (comment)

Basically I get this error when trying to build with Zola 0.14.1 on both Windows 10 and WSL2:

Error: Failed to render section '[...]\rust-gamedev.github.io\content\_index.md'
Reason: Failed to render 'index.html'
Reason: Variable `config.default_language` not found in context while rendering 'index.html'

Even though the "default_language" is clearly present in config.toml:

title = "Rust GameDev WG"
description = "Stay up to date with the progress and recent developments in the Rust Game Development Working Group."
base_url = "https://gamedev.rs/"
default_language = "en"
compile_sass = true
highlight_code = true
generate_feed = true
feed_filename = "rss.xml"
...

I'm not sure if this is a Zola issue, or an issue with the newsletter, so I'm opening it on both issue trackers.

Update: changing config.default_language to lang in index.html seems to fixes the issue.

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