From b29596c3ccafac527f28a33c6100d3800a895bbe Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Wed, 1 May 2019 23:06:02 +0200 Subject: [PATCH] Mention the 404 page does not get current_path/current_url Close #586 --- docs/content/documentation/templates/overview.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/content/documentation/templates/overview.md b/docs/content/documentation/templates/overview.md index 5659f20..cc827fd 100644 --- a/docs/content/documentation/templates/overview.md +++ b/docs/content/documentation/templates/overview.md @@ -20,6 +20,8 @@ A few variables are available on all templates minus RSS and sitemap: - `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 +The 404 template does not get `current_path` and `current_url` as it cannot know it. + ## Standard Templates 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