RatanShreshtha / DeepThought

A simple blog theme focused on writing powered by Bulma and Zola.
https://deepthought-theme.netlify.app/
MIT License
176 stars 92 forks source link

Lang variable #42

Closed tchartron closed 2 years ago

tchartron commented 2 years ago

Hi,

I'm trying to learn Zola and i'm inspired by this great theme, I'm sorry to post this as a github issue but i can't find where is the lang variable defined, could anyone help me ?

Thanks for helping and for sharing this great theme.

RatanShreshtha commented 2 years ago

https://github.com/RatanShreshtha/DeepThought/blob/1e8cb13c6994c3e15898b89fbbb9e7e133ecddd8/config.toml#L142

tchartron commented 2 years ago

Thanks, i should have been more precise : i don't see any lang variable definition to be used in templates/base.html like it is here https://github.com/RatanShreshtha/DeepThought/blob/1e8cb13c6994c3e15898b89fbbb9e7e133ecddd8/templates/base.html#L4

tchartron commented 2 years ago

For anyone looking for this like i was here is the answer : https://www.getzola.org/documentation/templates/pages-sections/

lang variable is coming from Pages variables of Zola and defaults to config.toml default_language variable.