Files
hugo/content/en/functions/urlquery.md
T
Michael Schnerring 44c0939116 Add urlquery function docs (#1633)
* Add urlquery function docs

Fixes #1627

* Update content/en/functions/urlquery.md

* Update content/en/functions/urlquery.md

* Update content/en/functions/urlquery.md

* Update content/en/functions/urlquery.md

* Update content/en/functions/urlquery.md

* Update content/en/functions/urlquery.md

* Update content/en/functions/urlquery.md

* Update content/en/functions/urlquery.md

Co-authored-by: Joe Mooring <joe@mooring.com>
2022-11-10 12:16:08 -08:00

686 B

title, linktitle, description, date, publishdate, lastmod, categories, menu, keywords, signature, hugoversion, deprecated, workson, relatedfuncs, aliases
title linktitle description date publishdate lastmod categories menu keywords signature hugoversion deprecated workson relatedfuncs aliases
urlquery urlquery Returns the escaped value of the textual representation of its arguments in a form suitable for embedding in a URL query. 2022-01-18 2022-01-18 2022-01-18
functions
docs
parent
functions
urls
urlquery INPUT [INPUT]...
false

This template code:

{{ $u := urlquery "https://" "example.com" | safeURL }}
<a href="https://example.org?url={{ $u }}">Link</a>

Is rendered to:

<a href="https://example.org?url=https%3A%2F%2Fexample.com">Link</a>