- {{ range $langs }}
-
- {{ highlight ($.Inner | transform.Remarshal . | safeHTML) . ""}}
-
- {{ if ne ($.Get "copy") "false" }}
-
- {{/* Functionality located within filesaver.js The copy here is located in the css with .copy class so it can be replaced with JS on success */}}
- {{end}}
- {{ end }}
-
+{{- /*
+ Renders syntax-highlighted configuration data in JSON, TOML, and YAML formats.
+ @param {string} [config] The section of site.Data.docs.config to render.
+ @param {bool} [copy=true] If true, display a copy to clipboard button.
+ @param {string} [file] The file name to display above the rendered code.
+ @param {bool} [fm=false] If true, render the code as front matter.
+ @param {bool} [skipHeader=false] If false, omit top level key(s) when rendering a section of site.Data.docs.config.
+
+ @returns {template.HTML}
+*/}}
+
+{{- /* Initialize. */}}
+{{- $config := "" }}
+{{- $dataKey := "" }}
+{{- $copy := false }}
+{{- $file := "" }}
+{{- $fm := false }}
+{{- $skipHeader := false }}
+
+{{- /* Get parameters. */}}
+{{- $config = .Get "config" }}
+{{- $dataKey = .Get "dataKey" }}
+{{- $file = .Get "file" }}
+{{- if in (slice "false" false 0) (.Get "copy") }}
+ {{- $copy = false }}
+{{- else if in (slice "true" true 1) (.Get "copy") }}
+ {{- $copy = true }}
+{{- end }}
+{{- if in (slice "false" false 0) (.Get "fm") }}
+ {{- $fm = false }}
+{{- else if in (slice "true" true 1) (.Get "fm") }}
+ {{- $fm = true }}
+{{- end }}
+{{- if in (slice "false" false 0) (.Get "skipHeader") }}
+ {{- $skipHeader = false }}
+{{- else if in (slice "true" true 1) (.Get "skipHeader") }}
+ {{- $skipHeader = true }}
+{{- end }}
+
+{{- /* Define constants. */}}
+{{- $delimiters := dict "toml" "+++" "yaml" "---" }}
+{{- $langs := slice "yaml" "toml" "json" }}
+{{- $placeHolder := "#-hugo-placeholder-#" }}
+
+{{- /* Render. */}}
+{{- $code := "" }}
+{{- if $config }}
+ {{- $file = $file | default "hugo" }}
+ {{- $sections := (split $config ".") }}
+ {{- $configSection := index $.Site.Data.docs.config $sections }}
+ {{- $code = dict $sections $configSection }}
+ {{- if $skipHeader }}
+ {{- $code = $configSection }}
+ {{- end }}
+{{- else if $dataKey }}
+ {{- $file = $file | default $dataKey }}
+ {{- $sections := (split $dataKey ".") }}
+ {{- $code = index $.Site.Data.docs $sections }}
+{{- else }}
+ {{- $code = $.Inner }}
+{{- end }}
+
diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/code.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/code.html
index 6df49956a..b6fd09c25 100644
--- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/code.html
+++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/code.html
@@ -1,15 +1,39 @@
-
- {{- with .Get "file" -}}
-
{{.}}
- {{- end -}}
+{{- /*
+Renders syntax highlighted code.
- {{ if ne (.Get "copy") "false" }}
-
- {{/* Functionality located within filesaver.js The copy here is located in the css with .copy class so it can be replaced with JS on success */}}
- {{end}}
-
- {{- .Inner -}}
-
+@param {bool} [copy=true] If true, display a copy to clipboard button.
+@param {string} [file] The file name to display above the rendered code.
+@param {string} [lang] The code language of the inner content.
+@returns {template.HTML}
+*/}}
+
+{{- /* Initialize. */}}
+{{- $copy := false }}
+{{- $file := " " }}
+{{- $lang := "" }}
+
+{{- /* Get parameters. */}}
+{{- $file = .Get "file" }}
+{{- $lang = or (.Get "lang") (path.Ext $file | strings.TrimPrefix ".") "text" }}
+{{- if in (slice "false" false 0) (.Get "copy") }}
+ {{- $copy = false }}
+{{- else if in (slice "true" true 1) (.Get "copy")}}
+ {{- $copy = true }}
+{{- end }}
+
+{{- /* Use the go-html-template Chroma lexer for HTML. */}}
+{{- if eq $lang "html" }}
+ {{- $lang = "go-html-template" }}
+{{- end }}
+
+{{- /* Render. */}}
+
+
{{ or $file "nbsp;" }}
+ {{- if $copy }}
+
+ {{- end }}
+
+ {{- highlight (trim .Inner "\n\r") $lang }}
+
diff --git a/layouts/shortcodes/datatable-filtered.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/datatable-filtered.html
similarity index 100%
rename from layouts/shortcodes/datatable-filtered.html
rename to _vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/datatable-filtered.html
diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/datatable.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/datatable.html
index 7ddda86d0..12054f89d 100644
--- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/datatable.html
+++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/datatable.html
@@ -1,18 +1,33 @@
-
-
-
- | Title |
- Author |
- Date |
-
-
-
- {{ range $ind, $art := $.Site.Data.articles.article }}
-
- | {{$art.title | markdownify }} |
- {{ $art.author | markdownify }} |
- {{ $art.date }} |
-
- {{ end }}
-
-
\ No newline at end of file
+{{ $package := (index .Params 0) }}
+{{ $listname := (index .Params 1) }}
+{{ $list := (index (index .Site.Data.docs $package) $listname) }}
+{{ $fields := after 2 .Params }}
+
+
+
+
+ {{ range $fields }}
+ {{ $s := . }}
+ {{ if eq $s "_key" }}
+ {{ $s = "Type" }}
+ {{ end }}
+ | {{ $s }} |
+ {{ end }}
+
+ {{ range $k1, $v1 := $list }}
+
+ {{ range $k2, $v2 := . }}
+ {{ $.Scratch.Set $k2 $v2 }}
+ {{ end }}
+ {{ range $fields }}
+ {{ $s := "" }}
+ {{ if eq . "_key" }}
+ {{ $s = $k1 }}
+ {{ else }}
+ {{ $s = $.Scratch.Get . }}
+ {{ end }}
+ | {{ $s }} |
+ {{ end }}
+
+ {{ end }}
+
diff --git a/layouts/shortcodes/funcsig.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/funcsig.html
similarity index 100%
rename from layouts/shortcodes/funcsig.html
rename to _vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/funcsig.html
diff --git a/layouts/shortcodes/gomodules-info.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/gomodules-info.html
similarity index 100%
rename from layouts/shortcodes/gomodules-info.html
rename to _vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/gomodules-info.html
diff --git a/layouts/shortcodes/img.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/img.html
similarity index 100%
rename from layouts/shortcodes/img.html
rename to _vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/img.html
diff --git a/layouts/shortcodes/imgproc.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/imgproc.html
similarity index 100%
rename from layouts/shortcodes/imgproc.html
rename to _vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/imgproc.html
diff --git a/layouts/shortcodes/include.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/include.html
similarity index 100%
rename from layouts/shortcodes/include.html
rename to _vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/include.html
diff --git a/layouts/shortcodes/list-pages-in-section.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/list-pages-in-section.html
similarity index 100%
rename from layouts/shortcodes/list-pages-in-section.html
rename to _vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/list-pages-in-section.html
diff --git a/layouts/shortcodes/module-mounts-note.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/module-mounts-note.html
similarity index 100%
rename from layouts/shortcodes/module-mounts-note.html
rename to _vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/module-mounts-note.html
diff --git a/layouts/shortcodes/new-in.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/new-in.html
similarity index 100%
rename from layouts/shortcodes/new-in.html
rename to _vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/new-in.html
diff --git a/layouts/shortcodes/quick-reference.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/quick-reference.html
similarity index 100%
rename from layouts/shortcodes/quick-reference.html
rename to _vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/quick-reference.html
diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/readfile.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/readfile.html
index f777abe26..de8083443 100644
--- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/readfile.html
+++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/readfile.html
@@ -1,6 +1,29 @@
-{{$file := .Get "file"}}
-{{- if eq (.Get "markdown") "true" -}}
-{{- $file | readFile | markdownify -}}
-{{- else -}}
-{{ $file | readFile | safeHTML }}
-{{- end -}}
\ No newline at end of file
+{{- $highlight := or (.Get "highlight") "" }}
+
+{{- $markdown := false }}
+{{- if in (slice "false" false 0) (.Get "markdown") }}
+ {{- $markdown = false }}
+{{- else if in (slice "true" true 1) (.Get "markdown") }}
+ {{- $markdown = true }}
+{{- end }}
+
+{{- with .Get "file" }}
+ {{- if os.FileExists . }}
+ {{- with os.ReadFile . }}
+ {{- $content := trim . "\n\r" }}
+ {{- if $markdown }}
+ {{- $content | markdownify }}
+ {{- else if $highlight }}
+ {{- highlight $content $highlight }}
+ {{- else }}
+ {{- $content | safeHTML }}
+ {{- end }}
+ {{- else }}
+ {{- errorf "The %q shortcode was unable to read %q. See %s" $.Name . $.Position }}
+ {{- end }}
+ {{- else }}
+ {{- errorf "The %q shortcode was unable to find %q. See %s" $.Name . $.Position }}
+ {{- end }}
+{{- else }}
+ {{- errorf "The %q shortcode requires a 'file' parameter. See %s" $.Name $.Position }}
+{{- end }}
diff --git a/layouts/shortcodes/todo.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/todo.html
similarity index 100%
rename from layouts/shortcodes/todo.html
rename to _vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/todo.html
diff --git a/layouts/template-func/page.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/template-func/page.html
similarity index 100%
rename from layouts/template-func/page.html
rename to _vendor/github.com/gohugoio/gohugoioTheme/layouts/template-func/page.html
diff --git a/_vendor/modules.txt b/_vendor/modules.txt
index 4d5e68903..3ad2560ec 100644
--- a/_vendor/modules.txt
+++ b/_vendor/modules.txt
@@ -1 +1 @@
-# github.com/gohugoio/gohugoioTheme v0.0.0-20230927165800-342e2c850f18
+# github.com/gohugoio/gohugoioTheme v0.0.0-20231106011748-17e5fb5db5f3
diff --git a/go.mod b/go.mod
index 8b99de36b..375af1bfc 100644
--- a/go.mod
+++ b/go.mod
@@ -2,4 +2,4 @@ module github.com/gohugoio/hugoDocs
go 1.16
-require github.com/gohugoio/gohugoioTheme v0.0.0-20230927165800-342e2c850f18 // indirect
+require github.com/gohugoio/gohugoioTheme v0.0.0-20231106011748-17e5fb5db5f3 // indirect
diff --git a/go.sum b/go.sum
index 9ff866436..0e056c201 100644
--- a/go.sum
+++ b/go.sum
@@ -1,79 +1,2 @@
-github.com/gohugoio/gohugoioTheme v0.0.0-20190808163145-07b3c0f73b02/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20191014144142-1f3a01deed7b h1:PWNjl46fvtz54PKO0BdiXOF6/4L/uCP0F3gtcCxGrJs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20191014144142-1f3a01deed7b/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20191021162625-2e7250ca437d h1:D3DcaYkuJbotdWNNAQpQl37txX4HQ6R5uMHoxVmTw0w=
-github.com/gohugoio/gohugoioTheme v0.0.0-20191021162625-2e7250ca437d/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200123151337-9475fd449324 h1:UZwHDYtGY0uOKIvcm2LWd+xfFxD3X5L222LIJdI5RE4=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200123151337-9475fd449324/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200123204146-589b4c309025 h1:ScYFARz+bHX1rEr1donVknhRdxGY/cwqK1hHvWEfrlc=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200123204146-589b4c309025/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200123205007-5d6620a0db26 h1:acXfduibbWxji9tW0WkLHbjcXFsnd5uIwXe0WfwOazg=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200123205007-5d6620a0db26/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200128164921-1d0bc5482051 h1:cS14MnUGS6xwWYfPNshimm8HdMCZiYBxWkCD0VnvgVw=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200128164921-1d0bc5482051/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200327225449-368f4cbef8d7 h1:cZ+ahAjSetbFv3aDJ9ipDbKyqaVlmkbSZ5cULgBTh+w=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200327225449-368f4cbef8d7/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200327231942-7f80b3d02bfa h1:kG+O/wT9UXomzp5eQiUuFVZ0l7YylAW6EVPLyjMxi/c=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200327231942-7f80b3d02bfa/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200328100657-2bfd5f8c6aee h1:PJZhCwnuVLyafDWNPSHk9iJvk6gEIvPRnycy7Pq3peA=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200328100657-2bfd5f8c6aee/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200518164958-62cbad03c40f h1:Ge3JACszSUyJW2Az9cJzWdo4PUqdijJA1RxoQSVMBSI=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200518164958-62cbad03c40f/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200518165806-0095b7b902a7 h1:Sy0hlWyZmFtdSY0Cobvw1ZYm3G1aR5+4DuFNRbMkh48=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200518165806-0095b7b902a7/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200711112515-b0dfe471654f h1:BWJyycs4HD7tUbaU8RIGeMay84bIBWRVVLE3yajPas4=
-github.com/gohugoio/gohugoioTheme v0.0.0-20200711112515-b0dfe471654f/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20210301124928-2c15837dfec3 h1:ShqzOFeeg54FPSuS6q8HSeTVgj2xNZRe/YS0jNbi21g=
-github.com/gohugoio/gohugoioTheme v0.0.0-20210301124928-2c15837dfec3/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20210409065807-6383d8cbaf65 h1:EJzierSWKqwsrUXU6MaFe0J97c0e5pzl5dBNRRrV2Nc=
-github.com/gohugoio/gohugoioTheme v0.0.0-20210409065807-6383d8cbaf65/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20210409071416-c88da48134b7 h1:uRCgPslaBgLYy4ANXBoPbBQVM8aNiHoxIZTKUXpkuUA=
-github.com/gohugoio/gohugoioTheme v0.0.0-20210409071416-c88da48134b7/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20211211125852-b85e21c1f3d6 h1:lAgdWrn8VEg0PrNCPX4DflCg2msDKpSYV6E8RTNV3N0=
-github.com/gohugoio/gohugoioTheme v0.0.0-20211211125852-b85e21c1f3d6/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20220228085601-7cfbda06d135 h1:6hVzfE9YhSsZP5t6jWjvVp7MoPm7Y5fEhH/ls4ahhKk=
-github.com/gohugoio/gohugoioTheme v0.0.0-20220228085601-7cfbda06d135/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20220905093719-cb8b64046950 h1:Ovlh3nuy/aNptYZHmIra2MP+ZUEqiihY0HxvhdaMqGg=
-github.com/gohugoio/gohugoioTheme v0.0.0-20220905093719-cb8b64046950/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20220912070954-88dcaf003b4d h1:UYJL6RmEepprvlgHvDnFCWtPOvjmqzFCQ90cRDRBO7U=
-github.com/gohugoio/gohugoioTheme v0.0.0-20220912070954-88dcaf003b4d/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20220914071648-0ef1c51685bf h1:A8Ksnvp8reNt2Ap0mUK7gFkJkCjt9R60yopGsezcOBA=
-github.com/gohugoio/gohugoioTheme v0.0.0-20220914071648-0ef1c51685bf/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20221116211530-5ae8dcdd68d6 h1:eG53kL1LkQuKmrDdzbvvx6d60qM07zp2Wjo/tYxkDOY=
-github.com/gohugoio/gohugoioTheme v0.0.0-20221116211530-5ae8dcdd68d6/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20221118083537-967e29e21382 h1:e30rl1dxWkYOcgdl0omeOK0HBzgDLI/b9MfYHrINjzU=
-github.com/gohugoio/gohugoioTheme v0.0.0-20221118083537-967e29e21382/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20221124154621-1451a01f406b h1:TRrIisSY7ckt9FVHOOQtmKG4jsnORCYn72UMvMu+IQ0=
-github.com/gohugoio/gohugoioTheme v0.0.0-20221124154621-1451a01f406b/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20221206093948-1408550ab675 h1:wjpYa1cTELeceWndBDV7IG2vRxRWICBBO79HObOfTtk=
-github.com/gohugoio/gohugoioTheme v0.0.0-20221206093948-1408550ab675/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20221217122332-1c1752ad8f14 h1:K6tPFpi7W0zb89QIf+lNdgdTXfDFemU6NKk46MlX9lQ=
-github.com/gohugoio/gohugoioTheme v0.0.0-20221217122332-1c1752ad8f14/go.mod h1:kpw3SS48xZvLQGEXKu8u5XHgXkPvL8DX3oGa07+z8Bs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20221220160735-8ffa1ef883b6 h1:yEoQecRBoLGfc7yTybMD3Mhm03bTScZFYPvwe0p75vA=
-github.com/gohugoio/gohugoioTheme v0.0.0-20221220160735-8ffa1ef883b6/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230109120406-12694c4a9456 h1:RSLItaapVjWkqSdQhumAmJkodFDbWMGNZmkVW/AFx0c=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230109120406-12694c4a9456/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230119103504-3bcd960d6f1b h1:i/iaEOOuR1mKRR0qUOET587ooVhG8c2tllpA5HsrWNU=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230119103504-3bcd960d6f1b/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230120185049-2c3c4d0ba232 h1:bEojKgKInbsLkID5Arh95vP4+0xydtn/+ayT6I8vkiU=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230120185049-2c3c4d0ba232/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230124135550-462d5fe4a87f h1:8wI3zOTWQG15aKkbAZQaoGnUQff46hO95opQndBHRE4=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230124135550-462d5fe4a87f/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230330081257-7a8c9614432c h1:TyHgmowfiMyxKrqTdRxm/yWIFeN7XRh7Hm6/dOG6yDA=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230330081257-7a8c9614432c/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230418063032-99f9185b8e11 h1:mDcricMewd66x8QjKqNun7Div7iYVLtl8s1dVs9VnB8=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230418063032-99f9185b8e11/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230527124826-78bc315d7b8a h1:ruyA3QZ4Ym0fBLhTW2eoUSvHUaj2xWqaPHIbaI+tbZo=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230527124826-78bc315d7b8a/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230615111426-c3725d921127 h1:LaOUdx1uo/Pr8Vr9KbqTwioia9OhNSiZDOHQGNHZiOs=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230615111426-c3725d921127/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230615131407-b3235557d2e6 h1:x/1M3CJRXCNfThsT+EeWrC2B1qFQZSCeOgA44RJJ5ds=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230615131407-b3235557d2e6/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230624091215-084560177ddc h1:BX7s0bvHFjx5Dll+9CBEiphSjWCDmZ1S+vOrB2wjpOg=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230624091215-084560177ddc/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230630055807-9874cd863bc5 h1:5QDXCq7G6Ak13EKF69QIJtH2YhidilBetNDgdoBYsWM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230630055807-9874cd863bc5/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230812102551-06f8256e7ee5 h1:QoImGtz9EWmovn3d0vfREKf1ybroA+oO/yFCW/BmWSE=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230812102551-06f8256e7ee5/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230927165800-342e2c850f18 h1:fwC86MGMw2yX2tIR+hc+58jlU4pjvc3HUDJ/mTB07Ig=
-github.com/gohugoio/gohugoioTheme v0.0.0-20230927165800-342e2c850f18/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
+github.com/gohugoio/gohugoioTheme v0.0.0-20231106011748-17e5fb5db5f3 h1:8VVvz832OTqCk/2pHUWXF+A+Usyf3V4JbmcDlWhSINI=
+github.com/gohugoio/gohugoioTheme v0.0.0-20231106011748-17e5fb5db5f3/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
diff --git a/hugo.toml b/hugo.toml
index 9ced49e4c..026743466 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -82,12 +82,6 @@ ID = 'G-MBZGKNMDWC'
weight = 60
cardinalityThreshold = 50
-# TODO delete when (a) Netlify is building the site with v0.120.0 or later,
-# and (b) the changes from gohugoioTheme/commit/af97b8e61638ddf043b87590cd567d76045bf9be
-# have been pulled into this repo.
-[social]
- twitter = "GoHugoIO"
-
[imaging]
# See https://github.com/disintegration/imaging
# CatmullRom is a sharp bicubic filter which should fit the docs site well with its many screenshots.
diff --git a/layouts/_default/page.html b/layouts/_default/page.html
deleted file mode 100644
index e9938dfab..000000000
--- a/layouts/_default/page.html
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-{{ with .Params.featured_image_path }}
-

-{{ end }}
-
-
-
- {{- partial "docs/functions-signatures.html" . -}}
- {{- partial "docs/functions-return-type.html" . -}}
- {{- partial "docs/functions-aliases.html" . -}}
-
- {{ .Content }}
-
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
deleted file mode 100644
index 4127c6dd0..000000000
--- a/layouts/_default/single.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{{ define "main" }}
-
-
-
-
- {{ partial "nav-links-docs.html" . }}
-
-
-
-
- {{ .Render "page" }}
- {{ partial "related.html" . }}
-
-
-
- {{ partial "right-sidebar" . }}
-
-
-
-
-
-
-
- {{ partial "docs/page-meta-data.html" . }}
- {{ partial "page-edit.html" . }}
- {{ partial "tags.html" . }}
-
-
-{{ end }}
diff --git a/layouts/news/list.html b/layouts/news/list.html
deleted file mode 100644
index 32f72a446..000000000
--- a/layouts/news/list.html
+++ /dev/null
@@ -1,70 +0,0 @@
-{{ define "main" }}
-
-
-
-
- {{ .Title }}
-
-
- {{ .Content }}
-
-
-
-
- {{ $interior_classes := $.Site.Params.flex_box_interior_classes }}
-
-
- {{ $news_items := slice }}
-
- {{/* Get releases from GitHub. */}}
- {{ $u := "https://api.github.com/repos/gohugoio/hugo/releases" }}
- {{ $releases := partial "inline/get-remote-data.html" $u }}
- {{ $releases = where $releases "draft" false }}
- {{ $releases = where $releases "prerelease" false }}
- {{ range $releases | first 20 }}
- {{ $ctx := dict
- "Date" (.published_at | time.AsTime)
- "Title" (printf "Release %s" .name)
- "Permalink" .html_url
- "Section" "news"
- "Summary" ""
- }}
- {{ $news_items = $news_items | append $ctx }}
- {{ end }}
-
- {{/* Get content pages from news section. */}}
- {{ range .Pages }}
- {{ $ctx := dict
- "Date" .Date
- "Title" .Title
- "RelPermalink" .RelPermalink
- "Section" "news"
- "Summary" .Summary
- "Params" (dict "description" .Description)
- }}
- {{ $news_items = $news_items | append $ctx }}
- {{ end }}
-
- {{/* Sort by date (descending) and render. */}}
- {{ range sort $news_items "Date" "desc" }}
- {{ partial "boxes-section-summaries" (dict "context" . "classes" $interior_classes "fullcontent" false) }}
- {{ end }}
-
-
-
-
-
-{{ end }}
-
-{{ define "partials/inline/get-remote-data.html" }}
- {{ $u := . }}
- {{ $r := "" }}
- {{ with $r = resources.GetRemote $u }}
- {{ with .Err }}
- {{ errorf "%s" . }}
- {{ end }}
- {{ else }}
- {{ errorf "Unable to get remote resource %q" $u }}
- {{ end }}
- {{ return ($r | transform.Unmarshal) }}
-{{ end }}
diff --git a/layouts/partials/boxes-section-summaries.html b/layouts/partials/boxes-section-summaries.html
deleted file mode 100644
index b293dc17d..000000000
--- a/layouts/partials/boxes-section-summaries.html
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
- {{ $href := .context.RelPermalink }}
- {{ if eq .context.Section "news" }}
- {{ $href = .context.Permalink }}
-
- {{ end }}
-
-
-
- {{ if eq .context.Section "commands" }}
- {{ replaceRE `(?s).*?##\s.*?\n\n(.*?)\n.*` "$1" .context.RawContent }}
- {{ else }}
-
- {{ if in (slice "functions" "methods") .context.Type }}
- {{ with $signature := index .context.Params.action.signatures 0 }}
- {{ if $.context.Params.action.returnType }}
- {{ $signature = printf "%s ⟼ %s" $signature $.context.Params.action.returnType }}
- {{ end }}
-
- {{- $signature -}}
-
- {{ end }}
- {{ end }}
-
- {{ if .context.Params.description }}
- {{ .context.Params.description | markdownify }}
- {{ else }}
- {{ .context.Summary }}
- {{ end }}
-
- {{ end }}
-
- Read More »
-
-
-
-
-
diff --git a/layouts/partials/boxes-small-news.html b/layouts/partials/boxes-small-news.html
deleted file mode 100644
index 0d53c5465..000000000
--- a/layouts/partials/boxes-small-news.html
+++ /dev/null
@@ -1 +0,0 @@
-{{/* Empty for now. */}}
diff --git a/layouts/partials/hooks/before-body-end.html b/layouts/partials/hooks/before-body-end.html
deleted file mode 100644
index dab653508..000000000
--- a/layouts/partials/hooks/before-body-end.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{{ if .Page.Store.Get "hasMermaid" }}
-
-{{ end }}
diff --git a/layouts/partials/pagelayout.html b/layouts/partials/pagelayout.html
deleted file mode 100644
index a3887bb14..000000000
--- a/layouts/partials/pagelayout.html
+++ /dev/null
@@ -1,36 +0,0 @@
-{{ $section_to_display := .section_to_display }}
-
-
-
-
- {{ partial "nav-links-docs.html" .context }}
-
-
-
-
-
- {{ with $.context.Data.Singular }}{{ . | humanize }}: {{ end }}{{ .context.Title }}
-
-
- {{ .context.Content }}
-
-
-
-
- {{ $interior_classes := .context.Site.Params.flex_box_interior_classes }}
-
- {{ $pages := $section_to_display }}
- {{ if in (slice "functions" "methods") $.context.Type }}
- {{ $pages = $.context.Pages }}
- {{ end }}
- {{ range $pages }}
- {{ partial "boxes-section-summaries" (dict "context" . "classes" $interior_classes "fullcontent" true) }}
- {{ end }}
-
-
-
-
-
-
-
-
diff --git a/layouts/partials/related.html b/layouts/partials/related.html
deleted file mode 100644
index ff7435668..000000000
--- a/layouts/partials/related.html
+++ /dev/null
@@ -1,22 +0,0 @@
-{{- $heading := "See also" }}
-{{- $related := site.RegularPages.Related . | first 5 }}
-
-{{- if in (slice "functions" "methods") .Type }}
- {{- $related = slice }}
- {{- range .Params.action.related }}
- {{- with site.GetPage (lower .) }}
- {{- $related = $related | append . }}
- {{- else }}
- {{- errorf "The 'related' partial was unable to get page %s" . }}
- {{- end }}
- {{- end }}
-{{- end }}
-
-{{- with $related }}
-
{{ $heading }}
-
-{{- end }}
diff --git a/layouts/shortcodes/code-toggle.html b/layouts/shortcodes/code-toggle.html
deleted file mode 100644
index 7198348b8..000000000
--- a/layouts/shortcodes/code-toggle.html
+++ /dev/null
@@ -1,101 +0,0 @@
-{{- /*
- Renders syntax-highlighted configuration data in JSON, TOML, and YAML formats.
-
- @param {string} [config] The section of site.Data.docs.config to render.
- @param {bool} [copy=true] If true, display a copy to clipboard button.
- @param {string} [file] The file name to display above the rendered code.
- @param {bool} [fm=false] If true, render the code as front matter.
- @param {bool} [skipHeader=false] If false, omit top level key(s) when rendering a section of site.Data.docs.config.
-
- @returns {template.HTML}
-*/}}
-
-{{- /* Initialize. */}}
-{{- $config := "" }}
-{{- $dataKey := "" }}
-{{- $copy := false }}
-{{- $file := "" }}
-{{- $fm := false }}
-{{- $skipHeader := false }}
-
-{{- /* Get parameters. */}}
-{{- $config = .Get "config" }}
-{{- $dataKey = .Get "dataKey" }}
-{{- $file = .Get "file" }}
-{{- if in (slice "false" false 0) (.Get "copy") }}
- {{- $copy = false }}
-{{- else if in (slice "true" true 1) (.Get "copy") }}
- {{- $copy = true }}
-{{- end }}
-{{- if in (slice "false" false 0) (.Get "fm") }}
- {{- $fm = false }}
-{{- else if in (slice "true" true 1) (.Get "fm") }}
- {{- $fm = true }}
-{{- end }}
-{{- if in (slice "false" false 0) (.Get "skipHeader") }}
- {{- $skipHeader = false }}
-{{- else if in (slice "true" true 1) (.Get "skipHeader") }}
- {{- $skipHeader = true }}
-{{- end }}
-
-{{- /* Define constants. */}}
-{{- $delimiters := dict "toml" "+++" "yaml" "---" }}
-{{- $langs := slice "yaml" "toml" "json" }}
-{{- $placeHolder := "#-hugo-placeholder-#" }}
-
-{{- /* Render. */}}
-{{- $code := "" }}
-{{- if $config }}
- {{- $file = $file | default "hugo" }}
- {{- $sections := (split $config ".") }}
- {{- $configSection := index $.Site.Data.docs.config $sections }}
- {{- $code = dict $sections $configSection }}
- {{- if $skipHeader }}
- {{- $code = $configSection }}
- {{- end }}
-{{- else if $dataKey }}
- {{- $file = $file | default $dataKey }}
- {{- $sections := (split $dataKey ".") }}
- {{- $code = index $.Site.Data.docs $sections }}
-{{- else }}
- {{- $code = $.Inner }}
-{{- end }}
-
-
- {{- with $file }}
-
- {{ . }}{{ if not $fm }}.{{ end }}
-
- {{- end }}
- {{- range $langs }}
-
-
- {{- end }}
-
-
- {{- range $langs }}
-
- {{- $hCode := $code | transform.Remarshal . }}
- {{- if and $fm (in (slice "toml" "yaml") .) }}
- {{- $hCode = printf "%s\n%s\n%s" $placeHolder $hCode $placeHolder }}
- {{- end }}
- {{- $hCode = $hCode | replaceRE `\n+` "\n" }}
- {{ highlight $hCode . "" | replaceRE $placeHolder (index $delimiters .) | safeHTML }}
-
- {{- if $copy }}
-
- {{- /* Functionality located within filesaver.js The copy here is located in the css with .copy class so it can be replaced with JS on success */}}
- {{- end }}
- {{- end }}
-
-
diff --git a/layouts/shortcodes/code.html b/layouts/shortcodes/code.html
deleted file mode 100644
index b6fd09c25..000000000
--- a/layouts/shortcodes/code.html
+++ /dev/null
@@ -1,39 +0,0 @@
-{{- /*
-Renders syntax highlighted code.
-
-@param {bool} [copy=true] If true, display a copy to clipboard button.
-@param {string} [file] The file name to display above the rendered code.
-@param {string} [lang] The code language of the inner content.
-
-@returns {template.HTML}
-*/}}
-
-{{- /* Initialize. */}}
-{{- $copy := false }}
-{{- $file := " " }}
-{{- $lang := "" }}
-
-{{- /* Get parameters. */}}
-{{- $file = .Get "file" }}
-{{- $lang = or (.Get "lang") (path.Ext $file | strings.TrimPrefix ".") "text" }}
-{{- if in (slice "false" false 0) (.Get "copy") }}
- {{- $copy = false }}
-{{- else if in (slice "true" true 1) (.Get "copy")}}
- {{- $copy = true }}
-{{- end }}
-
-{{- /* Use the go-html-template Chroma lexer for HTML. */}}
-{{- if eq $lang "html" }}
- {{- $lang = "go-html-template" }}
-{{- end }}
-
-{{- /* Render. */}}
-
-
{{ or $file "nbsp;" }}
- {{- if $copy }}
-
- {{- end }}
-
- {{- highlight (trim .Inner "\n\r") $lang }}
-
-
diff --git a/layouts/shortcodes/datatable.html b/layouts/shortcodes/datatable.html
deleted file mode 100644
index 12054f89d..000000000
--- a/layouts/shortcodes/datatable.html
+++ /dev/null
@@ -1,33 +0,0 @@
-{{ $package := (index .Params 0) }}
-{{ $listname := (index .Params 1) }}
-{{ $list := (index (index .Site.Data.docs $package) $listname) }}
-{{ $fields := after 2 .Params }}
-
-
-
-
- {{ range $fields }}
- {{ $s := . }}
- {{ if eq $s "_key" }}
- {{ $s = "Type" }}
- {{ end }}
- | {{ $s }} |
- {{ end }}
-
- {{ range $k1, $v1 := $list }}
-
- {{ range $k2, $v2 := . }}
- {{ $.Scratch.Set $k2 $v2 }}
- {{ end }}
- {{ range $fields }}
- {{ $s := "" }}
- {{ if eq . "_key" }}
- {{ $s = $k1 }}
- {{ else }}
- {{ $s = $.Scratch.Get . }}
- {{ end }}
- | {{ $s }} |
- {{ end }}
-
- {{ end }}
-
diff --git a/layouts/shortcodes/readfile.html b/layouts/shortcodes/readfile.html
deleted file mode 100644
index de8083443..000000000
--- a/layouts/shortcodes/readfile.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{{- $highlight := or (.Get "highlight") "" }}
-
-{{- $markdown := false }}
-{{- if in (slice "false" false 0) (.Get "markdown") }}
- {{- $markdown = false }}
-{{- else if in (slice "true" true 1) (.Get "markdown") }}
- {{- $markdown = true }}
-{{- end }}
-
-{{- with .Get "file" }}
- {{- if os.FileExists . }}
- {{- with os.ReadFile . }}
- {{- $content := trim . "\n\r" }}
- {{- if $markdown }}
- {{- $content | markdownify }}
- {{- else if $highlight }}
- {{- highlight $content $highlight }}
- {{- else }}
- {{- $content | safeHTML }}
- {{- end }}
- {{- else }}
- {{- errorf "The %q shortcode was unable to read %q. See %s" $.Name . $.Position }}
- {{- end }}
- {{- else }}
- {{- errorf "The %q shortcode was unable to find %q. See %s" $.Name . $.Position }}
- {{- end }}
-{{- else }}
- {{- errorf "The %q shortcode requires a 'file' parameter. See %s" $.Name $.Position }}
-{{- end }}