少于1分钟
将以下英文翻译为中文:
https://gohugo.io/functions/urlquery/
Returns the escaped value of the textual representation of its arguments in a form suitable for embedding in a URL query.
urlquery INPUT [INPUT]...
This template code:
1 2
{{ $u := urlquery "https://" "example.com" | safeURL }} <a href="https://example.org?url={{ $u }}">Link</a>
Is rendered to:
1
<a href="https://example.org?url=https%3A%2F%2Fexample.com">Link</a>