mirror of
https://github.com/getzola/zola
synced 2024-12-14 06:12:27 +00:00
Mention how to get config variables in templates
This commit is contained in:
parent
469babbd97
commit
fb6cbe008f
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ A few variables are available on all templates except RSS and the sitemap:
|
|||
- `current_url`: the full URL for the current page
|
||||
- `lang`: the language for the current page; `null` if the page/section doesn't have a language set
|
||||
|
||||
Config variables can be accessed like `config.variable`, in HTML for example with `{{ config.base_url }}`.
|
||||
The 404 template does not get `current_path` and `current_url` (this information cannot be determined).
|
||||
|
||||
## Standard templates
|
||||
|
|
Loading…
Reference in a new issue