mirror of
https://github.com/getzola/zola
synced 2024-12-13 13:52:28 +00:00
parent
f816e8a023
commit
b29596c3cc
1 changed files with 2 additions and 0 deletions
|
@ -20,6 +20,8 @@ A few variables are available on all templates minus RSS and sitemap:
|
||||||
- `current_url`: the full URL for that page
|
- `current_url`: the full URL for that page
|
||||||
- `lang`: the language for that page, `null` if the page/section doesn't have a language set
|
- `lang`: the language for that page, `null` if the page/section doesn't have a language set
|
||||||
|
|
||||||
|
The 404 template does not get `current_path` and `current_url` as it cannot know it.
|
||||||
|
|
||||||
## Standard Templates
|
## Standard Templates
|
||||||
By default, Zola will look for three templates: `index.html`, which is applied
|
By default, Zola will look for three templates: `index.html`, which is applied
|
||||||
to the site homepage; `section.html`, which is applied to all sections (any HTML
|
to the site homepage; `section.html`, which is applied to all sections (any HTML
|
||||||
|
|
Loading…
Reference in a new issue