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

Incorrect values in __tera_context #1512

Closed
rootkea opened this issue Jun 2, 2021 · 3 comments
Closed

Incorrect values in __tera_context #1512

rootkea opened this issue Jun 2, 2021 · 3 comments

Comments

@rootkea
Copy link
Contributor

rootkea commented Jun 2, 2021

Bug Report

Environment

Zola version: zola next branch

Expected Behavior

I should have seen correct values in __tera_context like in the case of 0.13.0

Current Behavior

Some values in __tera_context are incorrect like title, description (says null but I've set to strings in config.toml). Also generate_feed, build_search_index (says false but I've set to true in config.toml)

Step to reproduce

  1. Set appropriate values in config.toml
  2. Put {{ __tera_context }} in template

Thanks!

@Keats
Copy link
Collaborator

Keats commented Jun 2, 2021

The rendered config in the next branch is now language aware so it will show the values for the current language

@rootkea
Copy link
Contributor Author

rootkea commented Jun 2, 2021

I already have default_language = "en" in config.toml. I still don't understand why __tera_context is reporting incorrect values for variables like generate_feed, build_search_index, title etc.

I don't have languages = [...] variable in config.toml

@Keats
Copy link
Collaborator

Keats commented Jun 2, 2021

Issue found, very nice catch!

Keats added a commit that referenced this issue Jun 2, 2021
@Keats Keats closed this as completed Jun 2, 2021
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