mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
docs: Update description of querify
This commit is contained in:
parent
0ba9fb9631
commit
01b8bc1b26
1 changed files with 1 additions and 1 deletions
|
@ -882,7 +882,7 @@ e.g. `<a href="/tags/{{ . | urlize }}">{{ . }}</a>`
|
|||
|
||||
### querify
|
||||
|
||||
Takes a set of key-value pairs and returns a [`url.Values`](https://godoc.org/net/url#Values) object. The [`Encode`](https://godoc.org/net/url#Values.Encode) method turns the pairs into a [query string](https://en.wikipedia.org/wiki/Query_string) that cen be postpended to a url. E.g.
|
||||
Takes a set of key-value pairs and returns a [`url.Values`](https://godoc.org/net/url#Values) object. The [`Encode`](https://godoc.org/net/url#Values.Encode) method turns the pairs into a [query string](https://en.wikipedia.org/wiki/Query_string) that can be appended to a url. E.g.
|
||||
|
||||
<a href="https://www.google.com?{{ (querify "q" "test" "page" 3).Encode | safeHTML }}">Search</a>
|
||||
|
||||
|
|
Loading…
Reference in a new issue