github.com/rabbouni145/gg@v0.47.1/docs/content/en/functions/querify.md (about) 1 --- 2 title: querify 3 linktitle: querify 4 description: Takes a set of key-value pairs and returns a query string to be appended to URLs. 5 date: 2017-02-01 6 publishdate: 2017-02-01 7 lastmod: 2017-02-01 8 categories: [functions] 9 menu: 10 docs: 11 parent: "functions" 12 keywords: [urls] 13 godocref: 14 signature: ["querify KEY VALUE [KEY VALUE]..."] 15 hugoversion: 16 deprecated: false 17 workson: [] 18 relatedfuncs: [] 19 aliases: [] 20 --- 21 22 `querify` takes a set of key-value pairs and returns a [query string](https://en.wikipedia.org/wiki/Query_string) that can be appended to a URL. E.g. 23 24 The following example creates a link to a search results page on Google. 25 26 ``` 27 <a href="https://www.google.com?{{ (querify "q" "test" "page" 3) | safeURL }}">Search</a> 28 ``` 29 30 This example renders the following HTML: 31 32 ``` 33 <a href="https://www.google.com?page=3&q=test">Search</a> 34 ```