mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 16:14:59 +00:00
docs: Update description of querify
This commit is contained in:
1 parent
0ba9fb9631
commit
01b8bc1b26
1 file changed
+1
-1
@@ -882,7 +882,7 @@ e.g. `<a href="/tags/{{ . | urlize }}">{{ . }}</a>`
|
|||||||
|
|
||||||
### querify
|
### 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>
|
<a href="https://www.google.com?{{ (querify "q" "test" "page" 3).Encode | safeHTML }}">Search</a>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user