From 769264e3e577c2471a4fbf7e9fce881c0d5b0117 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Thu, 2 Dec 2021 19:53:41 +0100 Subject: [PATCH] Fix docs for get_url Closes #1667 --- docs/content/documentation/templates/overview.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/documentation/templates/overview.md b/docs/content/documentation/templates/overview.md index 50f26c27..7ab7013a 100644 --- a/docs/content/documentation/templates/overview.md +++ b/docs/content/documentation/templates/overview.md @@ -203,14 +203,14 @@ This can also be used to get the permalinks for static assets, for example if we want to link to the file that is located at `static/css/app.css`: ```jinja2 -{{/* get_url(path="static/css/app.css") */}} +{{/* get_url(path="css/app.css") */}} ``` By default, assets will not have a trailing slash. You can force one by passing `trailing_slash=true` to the `get_url` function. An example is: ```jinja2 -{{/* get_url(path="static/css/app.css", trailing_slash=true) */}} +{{/* get_url(path="css/app.css", trailing_slash=true) */}} ``` In the case of non-internal links, you can also add a cachebust of the format `?h=` at the end of a URL