mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-03 04:02:38 +00:00
44c0939116
* 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>
686 B
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 |
|
|
|
|
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>