Skip to content

Commit

Permalink
Merge commit 'e9fbadacc3f09191e2e19f112a49777eeb8df06c'
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jan 6, 2025
2 parents 2a7bb1c + e9fbada commit 0fc8678
Show file tree
Hide file tree
Showing 33 changed files with 598 additions and 433 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions docs/_vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1

# github.com/gohugoio/gohugoioTheme v0.0.0-20250106044328-feb60697e056
12 changes: 6 additions & 6 deletions docs/content/en/content-management/related.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ To list up to 5 related pages (which share the same _date_ or _keyword_ paramete
{{< code file=layouts/partials/related.html >}}
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h3>See Also</h3>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{ end }}
</ul>
<h3>See Also</h3>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{ end }}
</ul>
{{ end }}
{{< /code >}}

Expand Down
2 changes: 1 addition & 1 deletion docs/content/en/functions/collections/Dictionary.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ action:
aliases: [dict]
related:
- functions/collections/Slice
returnType: mapany
returnType: map[string]any
signatures: ['collections.Dictionary [VALUE...]']
aliases: [/functions/dict]
---
Expand Down
23 changes: 18 additions & 5 deletions docs/content/en/functions/collections/Querify.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: collections.Querify
description: Returns a URL query string composed of the given key-value pairs.
description: Returns a URL query string composed of the given key-value pairs, encoded and sorted by key.
categories: []
keywords: []
action:
Expand All @@ -13,18 +13,18 @@ action:
aliases: [/functions/querify]
---

Specify the key-value pairs as individual arguments, or as a slice. The following are equivalent:

Specify the key-value pairs as a map, a slice, or a sequence of scalar values. For example, the following are equivalent:

```go-html-template
{{ collections.Querify "a" 1 "b" 2 }}
{{ collections.Querify (dict "a" 1 "b" 2) }}
{{ collections.Querify (slice "a" 1 "b" 2) }}
{{ collections.Querify "a" 1 "b" 2 }}
```

To append a query string to a URL:

```go-html-template
{{ $qs := collections.Querify "a" 1 "b" 2 }}
{{ $qs := collections.Querify (dict "a" 1 "b" 2) }}
{{ $href := printf "https://example.org?%s" $qs }}
<a href="{{ $href }}">Link</a>
Expand All @@ -35,3 +35,16 @@ Hugo renders this to:
```html
<a href="https://example.org?a=1&amp;b=2">Link</a>
```

You can also pass in a map from your site configuration or front matter. For example:

{{< code-toggle file=content/example.md fm=true >}}
title = 'Example'
[params.query]
a = 1
b = 2
{{< /code-toggle >}}

```go-html-template
{{ collections.Querify .Params.query }}
```
3 changes: 2 additions & 1 deletion docs/content/en/functions/js/Babel.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ title: js.Babel
description: Compiles the given JavaScript resource with Babel.
categories: []
keywords: []
weight: 100
action:
aliases: [babel]
aliases: [babel,/hugo-pipes/babel/]
related:
- functions/js/Build
- functions/resources/Fingerprint
Expand Down
Loading

0 comments on commit 0fc8678

Please sign in to comment.