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

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

Closed
Bauxitedev opened this issue Sep 3, 2021 · 1 comment

Comments

@Bauxitedev
Copy link
Contributor

Bauxitedev commented Sep 3, 2021

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.

@17cupsofcoffee
Copy link
Collaborator

Our CI is currently pinned to Zola 0.12 - we haven't updated to 0.14 yet (but we should!)

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