Skip to content

Commit e9fbada

Browse files
committed
Squashed 'docs/' changes from 8390a4a3a..f0f4bcb24
f0f4bcb24 Update Batch.md 15a8b1de6 Update Batch.md eb841ce66 Update theme 751097f24 Use CI_PAGES_URL in GitLab Pages workflow 8584a0581 Fix typos b030a7149 Update configuration.md f7ec2ee9c Revert "Update shortcode.md" f8188f1c8 Update shortcode.md 083fc39c6 Update shortcode.md d4bdfb96b Update Filter.md ef00649db Document wrapperClass highlighting option e227dc422 Hugo 0.140.2 b95d28444 Fix description of the the hugo server command 41ca381b0 Fix documentation of Fragments 73a6cd966 Update theme 2573fd120 netlify: Hugo 0.140.1 90b19ec0d Merge branch 'tempv0.140.1' ad2e9aeec Update gocloud and docs for S3-Compatible Endpoints 34b30bad2 Remove indentation from include shortcode examples 97b4ef544 Update related.md 7234e0189 Update related.md 32cc191f6 Clarify Name and Title menu entry methods bce733c63 Update theme 2f1843d10 Use .Page.GetPage in examples of an include shortcode 9e1c85bbd Revert "Document PAGE.String" bb30e7c08 Document PAGE.String 2d151d77f Fix link fbe2d442f Miscellaneous updates for v0.140.0 4d3195223 Update JS docs vs Hugo v0.140 8c190aabc netlify: Hugo 0.140.0 826005ffe Merge branch 'tempv0.140.0' 107289a2c Update theme (again) 9884425f9 Update theme ff0a358d3 Update Go tool version in hugo.work c9b23cf6d tpl/tplimpl: Update details shortcode f29f19aff tpl/tplimpl: Add details shortcode git-subtree-dir: docs git-subtree-split: f0f4bcb243776d0552396d12758bd38cda779b62
1 parent e477373 commit e9fbada

File tree

36 files changed

+646
-434
lines changed

36 files changed

+646
-434
lines changed

‎_vendor/github.com/gohugoio/gohugoioTheme/assets/css/_shame.css‎

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎_vendor/github.com/gohugoio/gohugoioTheme/assets/output/css/app.css‎

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎_vendor/github.com/gohugoio/gohugoioTheme/data/sponsors.toml‎

Lines changed: 8 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/_markup/render-link.html‎

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/include.html‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎_vendor/modules.txt‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1
2-
1+
# github.com/gohugoio/gohugoioTheme v0.0.0-20250106044328-feb60697e056

‎content/en/content-management/related.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ To list up to 5 related pages (which share the same _date_ or _keyword_ paramete
2121
{{< code file=layouts/partials/related.html >}}
2222
{{ $related := .Site.RegularPages.Related . | first 5 }}
2323
{{ with $related }}
24-
<h3>See Also</h3>
25-
<ul>
26-
{{ range . }}
27-
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
28-
{{ end }}
29-
</ul>
24+
<h3>See Also</h3>
25+
<ul>
26+
{{ range . }}
27+
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
28+
{{ end }}
29+
</ul>
3030
{{ end }}
3131
{{< /code >}}
3232

‎content/en/content-management/shortcodes.md‎

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,50 @@ Example usage:
9494

9595
Although you can call this shortcode using the `{{</* */>}}` notation, computationally it is more efficient to call it using the `{{%/* */%}}` notation as shown above.
9696

97+
### details
98+
99+
{{< new-in 0.140.0 >}}
100+
101+
{{% note %}}
102+
To override Hugo's embedded `details` shortcode, copy the [source code] to a file with the same name in the layouts/shortcodes directory.
103+
104+
[source code]: {{% eturl details %}}
105+
{{% /note %}}
106+
107+
Use the `details` shortcode to create a `details` HTML element. For example:
108+
109+
```text
110+
{{</* details summary="See the details" */>}}
111+
This is a **bold** word.
112+
{{</* /details */>}}
113+
```
114+
115+
Hugo renders this to:
116+
117+
```html
118+
<details>
119+
<summary>See the details</summary>
120+
<p>This is a <strong>bold</strong> word.</p>
121+
</details>
122+
```
123+
124+
The details shortcode accepts these named arguments:
125+
126+
summary
127+
: (`string`) The content of the child `summary` element rendered from Markdown to HTML. Default is `Details`.
128+
129+
open
130+
: (`bool`) Whether to initially display the content of the `details` element. Default is `false`.
131+
132+
class
133+
: (`string`) The value of the element's `class` attribute.
134+
135+
name
136+
: (`string`) The value of the element's `name` attribute.
137+
138+
title
139+
: (`string`) The value of the element's `title` attribute.
140+
97141
### figure
98142

99143
{{% note %}}

‎content/en/functions/collections/Dictionary.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ action:
77
aliases: [dict]
88
related:
99
- functions/collections/Slice
10-
returnType: mapany
10+
returnType: map[string]any
1111
signatures: ['collections.Dictionary [VALUE...]']
1212
aliases: [/functions/dict]
1313
---

‎content/en/functions/collections/Querify.md‎

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: collections.Querify
3-
description: Returns a URL query string composed of the given key-value pairs.
3+
description: Returns a URL query string composed of the given key-value pairs, encoded and sorted by key.
44
categories: []
55
keywords: []
66
action:
@@ -13,18 +13,18 @@ action:
1313
aliases: [/functions/querify]
1414
---
1515

16-
Specify the key-value pairs as individual arguments, or as a slice. The following are equivalent:
17-
16+
Specify the key-value pairs as a map, a slice, or a sequence of scalar values. For example, the following are equivalent:
1817

1918
```go-html-template
20-
{{ collections.Querify "a" 1 "b" 2 }}
19+
{{ collections.Querify (dict "a" 1 "b" 2) }}
2120
{{ collections.Querify (slice "a" 1 "b" 2) }}
21+
{{ collections.Querify "a" 1 "b" 2 }}
2222
```
2323

2424
To append a query string to a URL:
2525

2626
```go-html-template
27-
{{ $qs := collections.Querify "a" 1 "b" 2 }}
27+
{{ $qs := collections.Querify (dict "a" 1 "b" 2) }}
2828
{{ $href := printf "https://example.org?%s" $qs }}
2929
3030
<a href="{{ $href }}">Link</a>
@@ -35,3 +35,16 @@ Hugo renders this to:
3535
```html
3636
<a href="https://example.org?a=1&amp;b=2">Link</a>
3737
```
38+
39+
You can also pass in a map from your site configuration or front matter. For example:
40+
41+
{{< code-toggle file=content/example.md fm=true >}}
42+
title = 'Example'
43+
[params.query]
44+
a = 1
45+
b = 2
46+
{{< /code-toggle >}}
47+
48+
```go-html-template
49+
{{ collections.Querify .Params.query }}
50+
```

0 commit comments

Comments
 (0)