Browse Source

Mention the 404 page does not get current_path/current_url

Close #586
index-subcmd
Vincent Prouillet 5 years ago
parent
commit
b29596c3cc
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      docs/content/documentation/templates/overview.md

+ 2
- 0
docs/content/documentation/templates/overview.md View File

@@ -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…
Cancel
Save