From fb6cbe008f0da03cbde426d8f020152b86dd91c8 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Sun, 12 Apr 2020 18:48:00 +0200 Subject: [PATCH] Mention how to get config variables in templates --- docs/content/documentation/templates/overview.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/content/documentation/templates/overview.md b/docs/content/documentation/templates/overview.md index 83fc03fe..6044d624 100644 --- a/docs/content/documentation/templates/overview.md +++ b/docs/content/documentation/templates/overview.md @@ -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