]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
Squashed 'docs/' changes from 227aab619..8390a4a3a
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 11 Dec 2024 08:53:33 +0000 (09:53 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 11 Dec 2024 08:53:33 +0000 (09:53 +0100)
8390a4a3a Add Void Linux installation instructions
d6099aae8 Update link to PostCSS plugins
25dad4693 netlify: Hugo 0.139.4
2b1fa118c Fix typo
3ef1eb505 Update hosting-on-aws-amplify
c0f6d35d6 Fix typo
aa54d4301 Correct directory name
98aa26bdb Improve instructions for hosting with AWS Amplify
a07638a80 Add new-in badges
6ad018055 netlify: Hugo 0.139.3
1050835d6 Update title of hugo.Store page
ebbd2e851 Clarify the shortcode Ordinal method
b7716ed95 Revise code block render hook for Mermaid diagrams
f1da9b6ea netlify: Hugo 0.139.2
d8ac9f428 Downgrade the Go toolchain in go.mod to a slightly older Go version
254b3c4f2 netlify: Hugo 0.139.1
03e666038 Add hugo.Store, site.Store and Shortcode.Store
157e8983b Update Anchorize.md
59fa9f214 Document the PageRef menu entry method
bda544cce docs(transform.Unmarshal): match lang attribute to title language in examples
1985886bd Adjust front matter of shared Markdown snippets
da5bd70d1 Fix typo
431b65d6b Update theme
b63ef69f5 Update style guidance
d50ed3422 Remove old new-in badges
12bfb9933 Update docs.yaml
0b936cacd netlify: Hugo 0.139.0
ab7668b4d dartsass: Add silenceDeprecations option
154df9bfc Merge commit '838bd312b1a287bb33962ad478dbc54737654f35'
efa80477c docs: Regen CLI docs
ad99e4a7a docs: Regenerate CLI docs

git-subtree-dir: docs
git-subtree-split: 8390a4a3ac36094f4cf47170af23b636608c420e

118 files changed:
_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.html
_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.xml
_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/related.html
_vendor/modules.txt
content/en/commands/hugo.md
content/en/commands/hugo_build.md
content/en/commands/hugo_completion.md
content/en/commands/hugo_completion_bash.md
content/en/commands/hugo_completion_fish.md
content/en/commands/hugo_completion_powershell.md
content/en/commands/hugo_completion_zsh.md
content/en/commands/hugo_config.md
content/en/commands/hugo_config_mounts.md
content/en/commands/hugo_convert.md
content/en/commands/hugo_convert_toJSON.md
content/en/commands/hugo_convert_toTOML.md
content/en/commands/hugo_convert_toYAML.md
content/en/commands/hugo_deploy.md
content/en/commands/hugo_env.md
content/en/commands/hugo_gen.md
content/en/commands/hugo_gen_chromastyles.md
content/en/commands/hugo_gen_doc.md
content/en/commands/hugo_gen_man.md
content/en/commands/hugo_import.md
content/en/commands/hugo_import_jekyll.md
content/en/commands/hugo_list.md
content/en/commands/hugo_list_all.md
content/en/commands/hugo_list_drafts.md
content/en/commands/hugo_list_expired.md
content/en/commands/hugo_list_future.md
content/en/commands/hugo_list_published.md
content/en/commands/hugo_mod.md
content/en/commands/hugo_mod_clean.md
content/en/commands/hugo_mod_get.md
content/en/commands/hugo_mod_graph.md
content/en/commands/hugo_mod_init.md
content/en/commands/hugo_mod_npm.md
content/en/commands/hugo_mod_npm_pack.md
content/en/commands/hugo_mod_tidy.md
content/en/commands/hugo_mod_vendor.md
content/en/commands/hugo_mod_verify.md
content/en/commands/hugo_new.md
content/en/commands/hugo_new_content.md
content/en/commands/hugo_new_site.md
content/en/commands/hugo_new_theme.md
content/en/commands/hugo_server.md
content/en/commands/hugo_server_trust.md
content/en/commands/hugo_version.md
content/en/content-management/_common/page-kinds.md
content/en/content-management/diagrams.md
content/en/contribute/documentation.md
content/en/functions/_common/glob-patterns.md
content/en/functions/_common/go-html-template-package.md
content/en/functions/_common/locales.md
content/en/functions/_common/regular-expressions.md
content/en/functions/_common/time-layout-string.md
content/en/functions/css/PostCSS.md
content/en/functions/css/Sass.md
content/en/functions/fmt/_common/fmt-layout.md
content/en/functions/go-template/_common/text-template.md
content/en/functions/go-template/_common/truthy-falsy.md
content/en/functions/hugo/Store.md [new file with mode: 0644]
content/en/functions/images/_common/apply-image-filter.md
content/en/functions/resources/_common/postcss-windows-warning.md
content/en/functions/time/_common/parsable-date-time-strings.md
content/en/functions/transform/Unmarshal.md
content/en/functions/urls/Anchorize.md
content/en/functions/urls/_common/anchorize-vs-urlize.md
content/en/hosting-and-deployment/hosting-on-aws-amplify.md [deleted file]
content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-05.png [new file with mode: 0644]
content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-06.png [new file with mode: 0644]
content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-07.png [new file with mode: 0644]
content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-08.png [new file with mode: 0644]
content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-09.png [new file with mode: 0644]
content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-11.png [new file with mode: 0644]
content/en/hosting-and-deployment/hosting-on-aws-amplify/index.md [new file with mode: 0644]
content/en/hosting-and-deployment/hosting-on-github/index.md
content/en/hosting-and-deployment/hosting-on-netlify/index.md
content/en/hugo-modules/use-modules.md
content/en/hugo-pipes/postprocess.md
content/en/hugo-pipes/transpile-sass-to-css.md
content/en/installation/_common/01-editions.md
content/en/installation/_common/02-prerequisites.md
content/en/installation/_common/03-prebuilt-binaries.md
content/en/installation/_common/04-build-from-source.md
content/en/installation/_common/homebrew.md
content/en/installation/linux.md
content/en/methods/menu-entry/PageRef.md [new file with mode: 0644]
content/en/methods/menu-entry/_common/pre-post.md
content/en/methods/page/Ancestors.md
content/en/methods/page/GitInfo.md
content/en/methods/page/HasMenuCurrent.md
content/en/methods/page/IsMenuCurrent.md
content/en/methods/page/Store.md
content/en/methods/page/_common/definition-of-section.md
content/en/methods/page/_common/next-and-prev.md
content/en/methods/page/_common/nextinsection-and-previnsection.md
content/en/methods/page/_common/output-format-definition.md
content/en/methods/page/_common/output-format-methods.md
content/en/methods/page/_common/scratch-methods.md
content/en/methods/pages/_common/group-sort-order.md
content/en/methods/pages/_common/next-and-prev.md
content/en/methods/resource/_common/global-page-remote-resources.md
content/en/methods/resource/_common/processing-spec.md
content/en/methods/shortcode/Ordinal.md
content/en/methods/shortcode/Scratch.md
content/en/methods/shortcode/Store.md [new file with mode: 0644]
content/en/methods/site/Store.md [new file with mode: 0644]
content/en/methods/taxonomy/_common/get-a-taxonomy-object.md
content/en/methods/taxonomy/_common/ordered-taxonomy-element-methods.md
content/en/render-hooks/_common/pageinner.md
content/en/render-hooks/code-blocks.md
content/en/templates/_common/filter-sort-group.md
content/en/templates/introduction.md
data/docs.yaml
go.mod
go.sum
netlify.toml

index a41e45a2cf8b540239f7f77dbfb071f7782c9161..113e63973b50cc9bdfc2edd4685d0c024d801cf6 100644 (file)
       {{ $releases = where $releases "draft" false }}
       {{ $releases = where $releases "prerelease" false }}
       {{ range $releases | first 20 }}
+        {{ $publishDate := .published_at | time.AsTime }}
+
+        {{/* Correct the v0.138.0 release date. See https://github.com/gohugoio/hugo/issues/13066. */}}
+        {{ if eq .name "v0.138.0" }}
+          {{ $publishDate = "2024-11-06T11:22:34Z" | time.AsTime }}
+        {{ end }}
+
         {{ $ctx := dict
-          "Date" (.published_at | time.AsTime)
+          "Date" $publishDate
           "Title" (printf "Release %s" .name)
           "Permalink" .html_url
           "Section" "news"
index 40bca59ebcfa3855b1016597d9696e82908a52ef..26b1217d02a8b0e9f9d0da826267eca2fa338ca5 100644 (file)
     {{- $releases = where $releases "draft" false }}
     {{- $releases = where $releases "prerelease" false }}
     {{- range $releases | first 20 }}
+      {{- $publishDate := .published_at | time.AsTime }}
+
+      {{- /* Correct the v0.138.0 release date. See https://github.com/gohugoio/hugo/issues/13066. */}}
+      {{- if eq .name "v0.138.0" }}
+        {{- $publishDate = "2024-11-06T11:22:34Z" | time.AsTime }}
+      {{- end }}
+
       {{- $summary := printf
         "Hugo %s was released on %s. See [release notes](%s) for details."
         .tag_name
-        (.published_at | time.AsTime | time.Format "2 Jan 2006")
+        ($publishDate | time.AsTime | time.Format "2 Jan 2006")
         .html_url
       }}
       {{- $ctx := dict
-        "PublishDate" (.published_at | time.AsTime)
+        "PublishDate" $publishDate
         "Title" (printf "Release %s" .name)
         "Permalink" .html_url
         "Section" "news"
index ff74356680643fafebcd40a79407a856dd2f56bc..53995a486d003435b23fdb50d2824aaa9d05e9da 100644 (file)
@@ -16,7 +16,7 @@
   <h2>{{ $heading }}</h2>
   <ul>
     {{- range . }}
-      <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+      <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
     {{- end }}
   </ul>
 {{- end }}
index 0a59507906240e844f1a58cb87e9397b162ff0ee..5ff5b9db1879cbd95929b086447005c0b1c3f87b 100644 (file)
@@ -1 +1,2 @@
-# github.com/gohugoio/gohugoioTheme v0.0.0-20241105120803-6c6e5fb8f8af
+# github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1
+
index c23b3e4baed19af48db0dc4989b528167e2d92fb..ef0bca9a5f63781872ec8a71c1d447a27bbd9f1f 100644 (file)
@@ -33,7 +33,6 @@ hugo [flags]
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
   -c, --contentDir string          filesystem path to content directory
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
       --disableKinds strings       disable different kind of pages (home, RSS etc.)
       --enableGitInfo              add Git revision, date, author, and CODEOWNERS info to the pages
@@ -64,7 +63,6 @@ hugo [flags]
   -t, --theme strings              themes to use (located in /themes/THEMENAME/)
       --themesDir string           filesystem path to themes directory
       --trace file                 write trace to file (not useful in general)
-  -v, --verbose                    verbose output
   -w, --watch                      watch filesystem for changes and recreate as needed
 ```
 
index c0abecfa9053c16f5ac0b245f09da3d08bf391ef..582cbe511fba6c1729f7aade35b9bf3c102972d5 100644 (file)
@@ -33,7 +33,6 @@ hugo build [flags]
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
   -c, --contentDir string          filesystem path to content directory
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
       --disableKinds strings       disable different kind of pages (home, RSS etc.)
       --enableGitInfo              add Git revision, date, author, and CODEOWNERS info to the pages
@@ -64,7 +63,6 @@ hugo build [flags]
   -t, --theme strings              themes to use (located in /themes/THEMENAME/)
       --themesDir string           filesystem path to themes directory
       --trace file                 write trace to file (not useful in general)
-  -v, --verbose                    verbose output
   -w, --watch                      watch filesystem for changes and recreate as needed
 ```
 
index 171018fee213cfa311479dbed653d4b7725ef2a5..96f53742a6977630e2d5a13e570b3ba475630b51 100644 (file)
@@ -25,7 +25,6 @@ See each sub-command's help for details on how to use the generated script.
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -34,7 +33,6 @@ See each sub-command's help for details on how to use the generated script.
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index bface97c6c3f2b9204456978da970aff8ba41deb..60973415f4734cf48f4393435252fd034aca3d37 100644 (file)
@@ -48,7 +48,6 @@ hugo completion bash
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -57,7 +56,6 @@ hugo completion bash
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 3a9cf0df2c3a8a03e7699547aeeb7961836bf3f6..92bbd6c22a19022eaca1b708f6c204ecdd10f4a3 100644 (file)
@@ -39,7 +39,6 @@ hugo completion fish [flags]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -48,7 +47,6 @@ hugo completion fish [flags]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 593573cee8a02933db14de0bfe8d31b9494221eb..f01442920131a485962b41d41b55f4c561cf28ac 100644 (file)
@@ -36,7 +36,6 @@ hugo completion powershell [flags]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -45,7 +44,6 @@ hugo completion powershell [flags]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index c227c61258be2c25dad1d52c9ea7e6b70cf62678..142c531031086a8cb1e86af081e2586ddd60da87 100644 (file)
@@ -50,7 +50,6 @@ hugo completion zsh [flags]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -59,7 +58,6 @@ hugo completion zsh [flags]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 96f84a531df38f0603e718386425c10a7e4b48da..8e8d745d2e47db073e00302b2266c16e4255e68e 100644 (file)
@@ -34,7 +34,6 @@ hugo config [command] [flags]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -43,7 +42,6 @@ hugo config [command] [flags]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 6fa30c0162700a96b6441b26c894fb4ac186ffa4..5af4819a2dc583f5b34b5f639409843aa28ced4d 100644 (file)
@@ -28,7 +28,6 @@ hugo config mounts [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -37,7 +36,6 @@ hugo config mounts [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 53d4d992cf8d2325010f946bab3ed421d75fdb83..aeaa3776662f89a1c0bcd4d8d90a7dcc06311df3 100644 (file)
@@ -27,7 +27,6 @@ See convert's subcommands toJSON, toTOML and toYAML for more information.
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -36,7 +35,6 @@ See convert's subcommands toJSON, toTOML and toYAML for more information.
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 9546788b5d9e7c73e54fb80843e9e810d5132869..40403193c0615a3a9294a4895e0b5335d3d69f91 100644 (file)
@@ -28,7 +28,6 @@ hugo convert toJSON [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -39,7 +38,6 @@ hugo convert toJSON [flags] [args]
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
       --unsafe                     enable less safe operations, please backup first
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 3bd703f603e187b1e9b9d04ae44f5b46a5fbf373..53ab826517a1c8a61ba4c383a71cab54df9f194e 100644 (file)
@@ -28,7 +28,6 @@ hugo convert toTOML [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -39,7 +38,6 @@ hugo convert toTOML [flags] [args]
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
       --unsafe                     enable less safe operations, please backup first
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 563375486d920226b1e7a58922e89cbc7f0a5c84..efb63a4e2ff31ca77f2c298feb8e17beab99a085 100644 (file)
@@ -28,7 +28,6 @@ hugo convert toYAML [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -39,7 +38,6 @@ hugo convert toYAML [flags] [args]
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
       --unsafe                     enable less safe operations, please backup first
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index a6fc536584aca1c3bbcf2ea7d8ff4f82867303f0..fce1e54220d43a2b02af8936634674e30b15db83 100644 (file)
@@ -38,7 +38,6 @@ hugo deploy [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -47,7 +46,6 @@ hugo deploy [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 50a7bc92f49a226ca08aac54e8319d73e993a7e6..e216be41688f887aafd52cd17987632e27eba73d 100644 (file)
@@ -27,7 +27,6 @@ hugo env [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -36,7 +35,6 @@ hugo env [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 20d8291788d18c6d5c9b54977c706acf51fce354..97cdbdb9da2546164620ef7649431a0aade2c301 100644 (file)
@@ -23,7 +23,6 @@ Generate documentation for your project using Hugo's documentation engine, inclu
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -32,7 +31,6 @@ Generate documentation for your project using Hugo's documentation engine, inclu
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 1c0ac72355c6f4a5da2540e2c0038374c1309518..49cde6bb90ada3bd1d87d98a28f34a8c7fd363f2 100644 (file)
@@ -33,7 +33,6 @@ hugo gen chromastyles [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -42,7 +41,6 @@ hugo gen chromastyles [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 5d2fffa4f507e2f9799f84440c50098138efa9c7..180dc4f95a6421586f012752470f9cf5fa2cabf8 100644 (file)
@@ -33,7 +33,6 @@ hugo gen doc [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -42,7 +41,6 @@ hugo gen doc [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index f05b06298960c48836164d792838f1f1f9f09747..f33342c548b23af573a77da03c681d7b1cb62fbf 100644 (file)
@@ -30,7 +30,6 @@ hugo gen man [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -39,7 +38,6 @@ hugo gen man [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 7de28e4cb663aadacf9e1547d19ff783dc3518d0..b20b585991a88c83cc35117d62c9cb5f633966ce 100644 (file)
@@ -25,7 +25,6 @@ Import requires a subcommand, e.g. `hugo import jekyll jekyll_root_path target_p
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -34,7 +33,6 @@ Import requires a subcommand, e.g. `hugo import jekyll jekyll_root_path target_p
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 33c91d24c6140a4a5a02e695143aa498386d1c3d..14c57cc447bdbe08437c2ef89d5f74dc6fd14d2e 100644 (file)
@@ -30,7 +30,6 @@ hugo import jekyll [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -39,7 +38,6 @@ hugo import jekyll [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 070a44d849d84db50e29ed5ce4a3a6fc9d0d9654..726fe51a96db46a14c53ea2105306a3e7bc9ace3 100644 (file)
@@ -25,7 +25,6 @@ List requires a subcommand, e.g. hugo list drafts
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -34,7 +33,6 @@ List requires a subcommand, e.g. hugo list drafts
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 5dd29904e1a5eae6370a249ac5c4cc51b18dfa9d..59846733d8305eb48b22f2cb7b24d406ed8763c5 100644 (file)
@@ -27,7 +27,6 @@ hugo list all [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -36,7 +35,6 @@ hugo list all [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 4dff70886dc66151facee9a2e02646127f10ac99..5f3bcd617427d9f5cc306c73a6abf3c431f5583c 100644 (file)
@@ -27,7 +27,6 @@ hugo list drafts [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -36,7 +35,6 @@ hugo list drafts [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 7b874a10599a99bce967748c20c218afb0e4b237..c010d1159ab3bf7ecaa36c79e116e79236938742 100644 (file)
@@ -27,7 +27,6 @@ hugo list expired [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -36,7 +35,6 @@ hugo list expired [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index f558acd521482c99089a11bb722016b615bd10b8..888784dcd87d7ca2db21d0bd47a835b87d5b9378 100644 (file)
@@ -27,7 +27,6 @@ hugo list future [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -36,7 +35,6 @@ hugo list future [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 9fc75694b02c9a6f25a659385831b218350546d6..b8ec0e7b22fe56f6ac03421801f398ceab51f8df 100644 (file)
@@ -27,7 +27,6 @@ hugo list published [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -36,7 +35,6 @@ hugo list published [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index d4e305ff1c019c9a2d122f1bff6d8d02693a13d6..2c07b89cfbabd2e164a5fc1726d93d8050cc3135 100644 (file)
@@ -34,7 +34,6 @@ See https://gohugo.io/hugo-modules/ for more information.
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -43,7 +42,6 @@ See https://gohugo.io/hugo-modules/ for more information.
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 80a983a661a5c057bed3cb462ed503275b07ef71..7df51059fb414ae80b3e92723da5645125d7c2be 100644 (file)
@@ -34,7 +34,6 @@ hugo mod clean [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -43,7 +42,6 @@ hugo mod clean [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index de6b01a24b4289b968646fa3bc052422c6a95b83..f4ca6069a7eaf7aa64a4caa9e35d9497979c159a 100644 (file)
@@ -58,7 +58,6 @@ hugo mod get [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -67,7 +66,6 @@ hugo mod get [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index f20e26b6f35bdc7cfbabacc937179b2ac2bb30b6..5b5a14d5d2b3c44565793a69dc4f2e26fd1b6d52 100644 (file)
@@ -35,7 +35,6 @@ hugo mod graph [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -44,7 +43,6 @@ hugo mod graph [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 1d7bc4ac0b6f1c30581dbfbfa4e29446ce26a527..bf9651b598bdd0abec67ef5de2f22804b72ce135 100644 (file)
@@ -39,7 +39,6 @@ hugo mod init [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -48,7 +47,6 @@ hugo mod init [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index eeb684e51777dda2167a7a8f08fce039cfcf5483..a013fb91fd8ee81eaec107ae4b030977811719b7 100644 (file)
@@ -27,7 +27,6 @@ hugo mod npm [command] [flags]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -36,7 +35,6 @@ hugo mod npm [command] [flags]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 47d3e28b9bbccce48e85982ff5753baa1247031b..8f8738280a7351feec5c8ffbac42039cd341d0ba 100644 (file)
@@ -42,7 +42,6 @@ hugo mod npm pack [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -51,7 +50,6 @@ hugo mod npm pack [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index be0f9265788eff647ce4aa5ccf276842f2b5e667..c15ddb3c85ba045345f15e07e5c7a6e2ba2acf05 100644 (file)
@@ -28,7 +28,6 @@ hugo mod tidy [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -37,7 +36,6 @@ hugo mod tidy [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index d33b2a6734a6cf020e172db389df21f88450592c..ae112a36a7ac5987ca55dae3a4c53f1625a24cc8 100644 (file)
@@ -34,7 +34,6 @@ hugo mod vendor [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -43,7 +42,6 @@ hugo mod vendor [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index c5e755e3c40a521a26e2325130ffbec6c1f4f9a5..63dd28ce82a8b20c1560b9eb629c4c642439dd33 100644 (file)
@@ -33,7 +33,6 @@ hugo mod verify [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -42,7 +41,6 @@ hugo mod verify [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index cfe6cc1cd441c79918109f5dd3823d36b5c6d6f2..4d3021b44b336821f02d9bb93c23407e2284113c 100644 (file)
@@ -30,7 +30,6 @@ Ensure you run this within the root directory of your site.
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -39,7 +38,6 @@ Ensure you run this within the root directory of your site.
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index c1e3ffa30c25095c0daabfc71a3f35bd7aebe90a..a8d2100f9bda642efc4d91d54b97234fc85f52ea 100644 (file)
@@ -42,7 +42,6 @@ hugo new content [path] [flags]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -51,7 +50,6 @@ hugo new content [path] [flags]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 9df879103b395c1369a498dc0be38ef90c9c5ff2..cc0e630132d10499c824c5aed2db7bd5adb6f97e 100644 (file)
@@ -31,7 +31,6 @@ hugo new site [path] [flags]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -40,7 +39,6 @@ hugo new site [path] [flags]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 6ab98f6b9b6771cfe04991a4972a4f027ac584d5..a79978c4ab62b2cd4f8b0d3dfdfd4d0b5a5e43ca 100644 (file)
@@ -30,7 +30,6 @@ hugo new theme [name] [flags]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -39,7 +38,6 @@ hugo new theme [name] [flags]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index b79b7f374b3de71ebef77f285145078218db86a2..a1c77d36f7977c3577cc3b791a68376d3673e174 100644 (file)
@@ -54,6 +54,7 @@ hugo server [command] [flags]
       --noChmod                  don't sync permission mode of files
       --noHTTPCache              prevent HTTP caching
       --noTimes                  don't sync modification time of files
+  -O, --openBrowser              open the site in a browser after server startup
       --panicOnWarning           panic on first WARNING log
       --poll string              set this to a poll interval, e.g --poll 700ms, to use a poll based approach to watch for file system changes
   -p, --port int                 port on which the server will listen (default 1313)
@@ -80,7 +81,6 @@ hugo server [command] [flags]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -89,7 +89,6 @@ hugo server [command] [flags]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index fb242d88ca71434d181ee3c3662561f1566902ba..1a904e8453eb6a343e5e2b64bb53b0ebb3225b87 100644 (file)
@@ -24,7 +24,6 @@ hugo server trust [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -33,7 +32,6 @@ hugo server trust [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index bbc9610930097d0853c1ed6b3c9ead8889a74ecd..b1a6b971e1068c04eca3bee3e9a0fc1686f5a475 100644 (file)
@@ -27,7 +27,6 @@ hugo version [flags] [args]
       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
       --config string              config file (default is hugo.yaml|json|toml)
       --configDir string           config dir (default "config")
-      --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
@@ -36,7 +35,6 @@ hugo version [flags] [args]
   -M, --renderToMemory             render to memory (mostly useful when running the server)
   -s, --source string              filesystem path to read files relative from
       --themesDir string           filesystem path to themes directory
-  -v, --verbose                    verbose output
 ```
 
 ### SEE ALSO
index 07a53e8e63e349a5d40fb9300030c70461477250..8f10dcd792bd875824aaaab7feb7ea4719af2d58 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 | Kind | Description | Example |
index 8851034c6c25feb5ea14befa3f38a57b5e8f58d7..f9f3cd30f648e36868628b3c91fe6cc60fa6d59c 100644 (file)
@@ -52,7 +52,7 @@ Hugo does not provide a built-in template for Mermaid diagrams. Create your own
 
 {{< code file=layouts/_default/_markup/render-codeblock-mermaid.html >}}
 <pre class="mermaid">
-  {{- .Inner | safeHTML }}
+  {{- .Inner | htmlEscape | safeHTML }}
 </pre>
 {{ .Page.Store.Set "hasMermaid" true }}
 {{< /code >}}
index 580d0b0e2ef2ab3052553caf5490d067621d9d9a..d4e65c9e0ba53c3e499b4b733a44182fed9420f0 100644 (file)
@@ -37,7 +37,9 @@ Please follow these guidelines:
 
 ### Style
 
-Although we do not strictly adhere to the [Microsoft Writing Style Guide], it is an excellent resource for questions related to style, grammar, and voice.
+Please adhere to Google's [developer documentation style guide].
+
+[developer documentation style guide]: https://developers.google.com/style
 
 #### Terminology
 
index 3b0813f6fe9143547ae4b5fd989e27c3a0fdd0af..d3092dece2cc90571f85357e239700a7ab41930e 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 Path|Pattern|Match
index b622f2b76e2de33b2272acd724976a99e89bbe36..57992ea66b113d218b14f257e30515d8d87307fc 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 Hugo uses Go's [text/template] and [html/template] packages.
index fd84157819b5f263a82aba6a550c9b17e1705d4e..42d00877601b102d181270c33e32548d3d0a9f9a 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 {{% note %}}
index 48e020ac65a5748225fffe8647115bf826474d38..58f81a2ee55dda85121378e29e7a46e123a97eba 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 When specifying the regular expression, use a raw [string literal] (backticks) instead of an interpreted string literal (double quotes) to simplify the syntax. With an interpreted string literal you must escape backslashes.
index 827dc9894657a8c94cb9dc0c7d6e15c762070773..3664eaef2e32a989e1d3f662621d2048e4830037 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 Format a `time.Time` value based on [Go's reference time]:
index 750971c103d31702616207388661376549803e17..8d41435751f8a061092ce06b63dc91b0c8c837eb 100644 (file)
@@ -124,6 +124,6 @@ module.exports = {
 ```
 
 [node.js]: https://nodejs.org/en/download
-[postcss plugins]: https://www.postcss.parts/
+[postcss plugins]: https://postcss.org/docs/postcss-plugins
 [supported file name]: https://github.com/postcss/postcss-load-config#usage
 [transpile to CSS]: /functions/css/sass/
index 328037bb96b63f1f9451f7d7e73c990a81f7760d..793c0c1ac2fb3ca23073745fcfb50907365e207e 100644 (file)
@@ -86,6 +86,9 @@ includePaths
 {{ end }}
 ```
 
+silenceDeprecations
+: (`slice`) {{< new-in 0.139.0 >}} A slice of deprecation IDs to silence. The deprecation IDs are printed to in the warning message, e.g "import" in `WARN  Dart Sass: DEPRECATED [import] ...`. This is for Dart Sass only.
+
 ## Dart Sass
 
 The extended version of Hugo includes [LibSass] to transpile Sass to CSS. In 2020, the Sass team deprecated LibSass in favor of [Dart Sass].
index ff69ce5e43dac2b1213aef13f3843202c7a2abe2..09a9ee867731f1c3ae229080f4c96cb4ff70e4aa 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 The documentation for Go's [fmt] package describes the structure and content of the format string.
index 71718c3fd369853fb543e5ac0aea40a2c227062e..4b934c1e98a23db0a31a2902ccd4d77062a812c5 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 See Go's [text/template] documentation for more information.
index c41bb65618445463d4e15b6b443a2dfdc521349e..e15e58d617158e421b52bb68086326e04fe2c40e 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 The falsy values are `false`, `0`, any `nil` pointer or interface value, any array, slice, map, or string of length zero, and zero `time.Time` values.
diff --git a/content/en/functions/hugo/Store.md b/content/en/functions/hugo/Store.md
new file mode 100644 (file)
index 0000000..b0503a5
--- /dev/null
@@ -0,0 +1,125 @@
+---
+title: hugo.Store
+description: Returns a global, persistent "scratch pad" to store and manipulate data.
+categories: []
+keywords: []
+action:
+  related:
+  - methods/page/store
+  - methods/site/store
+  - functions/collections/NewScratch
+  returnType: maps.Scratch
+  signatures: [hugo.Store]
+toc: true
+---
+
+{{< new-in 0.139.0 >}}
+
+The global `hugo.Store` function creates a persistent [scratch pad] to store and manipulate data. To create a locally scoped, use the [`newScratch`] function.
+
+[`Scratch`]: /functions/hugo/scratch/
+[`newScratch`]: /functions/collections/newscratch/
+[scratch pad]: /getting-started/glossary/#scratch-pad
+
+## Methods
+
+###### Set
+
+Sets the value of a given key.
+
+```go-html-template
+{{ hugo.Store.Set "greeting" "Hello" }}
+```
+
+###### Get
+
+Gets the value of a given key.
+
+```go-html-template
+{{ hugo.Store.Set "greeting" "Hello" }}
+{{ hugo.Store.Get "greeting" }} → Hello
+```
+
+###### Add
+
+Adds a given value to existing value(s) of the given key.
+
+For single values, `Add` accepts values that support Go's `+` operator. If the first `Add` for a key is an array or slice, the following adds will be appended to that list.
+
+```go-html-template
+{{ hugo.Store.Set "greeting" "Hello" }}
+{{ hugo.Store.Add "greeting" "Welcome" }}
+{{ hugo.Store.Get "greeting" }} → HelloWelcome
+```
+
+```go-html-template
+{{ hugo.Store.Set "total" 3 }}
+{{ hugo.Store.Add "total" 7 }}
+{{ hugo.Store.Get "total" }} → 10
+```
+
+```go-html-template
+{{ hugo.Store.Set "greetings" (slice "Hello") }}
+{{ hugo.Store.Add "greetings" (slice "Welcome" "Cheers") }}
+{{ hugo.Store.Get "greetings" }} → [Hello Welcome Cheers]
+```
+
+###### SetInMap
+
+Takes a `key`, `mapKey` and `value` and adds a map of `mapKey` and `value` to the given `key`.
+
+```go-html-template
+{{ hugo.Store.SetInMap "greetings" "english" "Hello" }}
+{{ hugo.Store.SetInMap "greetings" "french" "Bonjour" }}
+{{ hugo.Store.Get "greetings" }} → map[english:Hello french:Bonjour]
+```
+
+###### DeleteInMap
+
+Takes a `key` and `mapKey` and removes the map of `mapKey` from the given `key`.
+
+```go-html-template
+{{ hugo.Store.SetInMap "greetings" "english" "Hello" }}
+{{ hugo.Store.SetInMap "greetings" "french" "Bonjour" }}
+{{ hugo.Store.DeleteInMap "greetings" "english" }}
+{{ hugo.Store.Get "greetings" }} → map[french:Bonjour]
+```
+
+###### GetSortedMapValues
+
+Returns an array of values from `key` sorted by `mapKey`.
+
+```go-html-template
+{{ hugo.Store.SetInMap "greetings" "english" "Hello" }}
+{{ hugo.Store.SetInMap "greetings" "french" "Bonjour" }}
+{{ hugo.Store.GetSortedMapValues "greetings" }} → [Hello Bonjour]
+```
+
+###### Delete
+
+Removes the given key.
+
+```go-html-template
+{{ hugo.Store.Set "greeting" "Hello" }}
+{{ hugo.Store.Delete "greeting" }}
+```
+
+## Determinate values
+
+The `Store` method is often used to set scratch pad values within a shortcode, a partial template called by a shortcode, or by a Markdown render hook. In all three cases, the scratch pad values are indeterminate until Hugo renders the page content.
+
+If you need to access a scratch pad value from a parent template, and the parent template has not yet rendered the page content, you can trigger content rendering by assigning the returned value to a [noop] variable:
+
+[noop]: /getting-started/glossary/#noop
+
+```go-html-template
+{{ $noop := .Content }}
+{{ hugo.Store.Get "mykey" }}
+```
+
+You can also trigger content rendering with the `ContentWithoutSummary`, `FuzzyWordCount`, `Len`, `Plain`, `PlainWords`, `ReadingTime`, `Summary`, `Truncated`, and `WordCount` methods. For example:
+
+```go-html-template
+{{ $noop := .WordCount }}
+{{ hugo.Store.Get "mykey" }}
+```
index 15eddb4854648ff4bb310e556d49415c1c5f1e8d..08e08238f38764ee63eb1a72ed8e427fff9582b6 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 Apply the filter using the [`images.Filter`] function:
index 1b72e74db328be97f1e5d19919a277ee9dfe9890..e2d97850b2dcbd5302f625c007be66f5f65fb5ef 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 If you are a Windows user, and the path to your project contains a space, you must place the PostCSS configuration within the package.json file. See [this example] and issue [#7333].
index 6d1633a6f499247d7a9fb732ad71a78d87755864..92842767eafa88166cb33120390dd3c43598a6a8 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 Format|Time zone
index 998152eb24a630b26f27cbf9643ab69bee6b68dd..960332c440e36975f86970d36eb0d41a84c63177 100644 (file)
@@ -230,7 +230,7 @@ Let's add a `lang` attribute to the `title` nodes of our RSS feed, and a namespa
     <language>en-US</language>
     <atom:link href="https://example.org/books/index.xml" rel="self" type="application/rss+xml" />
     <item>
-      <title lang="fr">The Hunchback of Notre Dame</title>
+      <title lang="en">The Hunchback of Notre Dame</title>
       <description>Written by Victor Hugo</description>
       <isbn:number>9780140443530</isbn:number>
       <link>https://example.org/books/the-hunchback-of-notre-dame/</link>
@@ -238,7 +238,7 @@ Let's add a `lang` attribute to the `title` nodes of our RSS feed, and a namespa
       <guid>https://example.org/books/the-hunchback-of-notre-dame/</guid>
     </item>
     <item>
-      <title lang="en">Les Misérables</title>
+      <title lang="fr">Les Misérables</title>
       <description>Written by Victor Hugo</description>
       <isbn:number>9780451419439</isbn:number>
       <link>https://example.org/books/les-miserables/</link>
@@ -266,7 +266,7 @@ Each item node looks like this:
   "pubDate": "Mon, 09 Oct 2023 09:27:12 -0700",
   "title": {
     "#text": "The Hunchback of Notre Dame",
-    "-lang": "fr"
+    "-lang": "en"
   }
 }
 ```
@@ -290,8 +290,8 @@ Hugo renders this to:
 
 ```html
 <ul>
-  <li>The Hunchback of Notre Dame (fr) 9780140443530</li>
-  <li>Les Misérables (en) 9780451419439</li>
+  <li>The Hunchback of Notre Dame (en) 9780140443530</li>
+  <li>Les Misérables (fr) 9780451419439</li>
 </ul>
 ```
 
index f3939675a7cd3fc8f9a1d64aaa6468f38d1c88e8..d8866ae059428f6cdaefd5b21c6716b26e8b6c62 100644 (file)
@@ -28,10 +28,10 @@ This controls the behavior of the `anchorize` function and the generation of hea
 Set `autoHeadingIDType` to one of:
 
 github
-: Compatible with GitHub. This is the default, and strongly recommended.
+: Compatible with GitHub. This is the default.
 
 github-ascii
-: Similar to the "github" setting, but removes non-ASCII characters. 
+: Similar to the `github` setting, but removes non-ASCII characters. 
 
 blackfriday
 : Provided for backwards compatibility with Hugo v0.59.1 and earlier. This option will be removed in a future release.
index 718c1409883478e18a70d535c5e19225272f6a9c..710a3c59249961a65b7664cd627117d44f513d02 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 The [`anchorize`] and [`urlize`] functions are similar: 
diff --git a/content/en/hosting-and-deployment/hosting-on-aws-amplify.md b/content/en/hosting-and-deployment/hosting-on-aws-amplify.md
deleted file mode 100644 (file)
index 43d7531..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
----
-title: Host on AWS Amplify
-description: Develop and deploy a cloud-powered web app with AWS Amplify.
-categories: [hosting and deployment]
-keywords: [hosting,amplify]
-menu:
-  docs:
-    parent: hosting-and-deployment
-toc: true
----
-
-In this guide we'll walk through how to deploy and host your Hugo site using the [AWS Amplify Console](https://console.amplify.aws).
-
-AWS Amplify is a combination of client library, CLI toolchain, and a Console for continuous deployment and hosting. The Amplify CLI and library allow developers to get up & running with full-stack cloud-powered applications with features like authentication, storage, serverless GraphQL or REST APIs, analytics, Lambda functions, & more. The Amplify Console provides continuous deployment and hosting for modern web apps (single page apps and static site generators). Continuous deployment allows developers to deploy updates to their web app on every code commit to their Git repository. Hosting includes features such as globally available CDNs, easy custom domain setup + HTTPS, feature branch deployments, and password protection.
-
-## Pre-requisites
-
-* [Sign up for an AWS Account](https://portal.aws.amazon.com/billing/signup?redirect_url=https%3A%2F%2Faws.amazon.com%2Fregistration-confirmation). There are no upfront charges or any term commitments to create an AWS account and signing up gives you immediate access to the AWS Free Tier.
-* You have an account with GitHub, GitLab, or Bitbucket.
-* You have completed the [Quick Start] or have a Hugo website you are ready to deploy and share with the world.
-
-## Hosting
-
-1. Log in to the [AWS Amplify Console](https://console.aws.amazon.com/amplify/home) and choose Get Started under Deploy.
-   ![Hugo Amplify](/images/hosting-and-deployment/hosting-on-aws-amplify/amplify-gettingstarted.png)
-
-1. Connect a branch from your GitHub, Bitbucket, GitLab, or AWS CodeCommit repository. Connecting your repository allows Amplify to deploy updates on every code commit to a branch.
-   ![Hugo Amplify](/images/hosting-and-deployment/hosting-on-aws-amplify/amplify-connect-repo.gif)
-
-1. Accept the default build settings. The Amplify Console automatically detects your Hugo build settings and output directory.
-   ![Hugo Amplify](/images/hosting-and-deployment/hosting-on-aws-amplify/amplify-build-settings.png)
-
-1. Review your changes and then choose **Save and deploy**. The Amplify Console will pull code from your repository, build changes to the backend and frontend, and deploy your build artifacts at `https://master.unique-id.amplifyapp.com`. Bonus: Screenshots of your app on different devices to find layout issues.
-
-## Using a newer version of Hugo
-
-If you need to use a different, perhaps newer, version of Hugo than the version currently supported by AWS Amplify:
-
-1. Visit the [AWS Amplify Console](https://console.aws.amazon.com/amplify/home), and click the app you would like to modify
-1. In the side navigation bar, Under App Settings, click **Build settings**
-1. On the Build settings page, near the bottom, there is a section called **Build image settings**. Click **Edit**
-1. Under **Live package updates**, click **Add package version override**
-1. From the selection, click **Hugo** and ensure the version field says `latest`
-1. Click **Save** to save the changes.
-
-[Quick Start]: /getting-started/quick-start/
diff --git a/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-05.png b/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-05.png
new file mode 100644 (file)
index 0000000..bb98d97
Binary files /dev/null and b/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-05.png differ
diff --git a/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-06.png b/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-06.png
new file mode 100644 (file)
index 0000000..2e9b96e
Binary files /dev/null and b/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-06.png differ
diff --git a/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-07.png b/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-07.png
new file mode 100644 (file)
index 0000000..b326015
Binary files /dev/null and b/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-07.png differ
diff --git a/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-08.png b/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-08.png
new file mode 100644 (file)
index 0000000..55e80e7
Binary files /dev/null and b/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-08.png differ
diff --git a/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-09.png b/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-09.png
new file mode 100644 (file)
index 0000000..b422e3a
Binary files /dev/null and b/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-09.png differ
diff --git a/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-11.png b/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-11.png
new file mode 100644 (file)
index 0000000..e147edf
Binary files /dev/null and b/content/en/hosting-and-deployment/hosting-on-aws-amplify/amplify-step-11.png differ
diff --git a/content/en/hosting-and-deployment/hosting-on-aws-amplify/index.md b/content/en/hosting-and-deployment/hosting-on-aws-amplify/index.md
new file mode 100644 (file)
index 0000000..b1a0f46
--- /dev/null
@@ -0,0 +1,151 @@
+---
+title: Host on AWS Amplify
+description: Host your site on AWS Amplify with continuous deployment.
+categories: [hosting and deployment]
+keywords: [hosting]
+menu:
+  docs:
+    parent: hosting-and-deployment
+toc: true
+---
+
+## Prerequisites
+
+Please complete the following tasks before continuing:
+
+1. [Create an AWS account]
+2. [Install Git]
+3. [Create a Hugo site] and test it locally with `hugo server`
+4. Commit the changes to your local repository
+5. Push the local repository to your [GitHub], [GitLab], or [Bitbucket] account
+
+[Bitbucket]: https://bitbucket.org/product
+[Create a Hugo site]: /getting-started/quick-start/
+[Create an AWS account]: https://aws.amazon.com/resources/create-account/
+[GitHub]: https://github.com
+[GitLab]: https://about.gitlab.com/
+[Install Git]: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
+
+## Procedure
+
+This procedure will enable continuous deployment from a GitHub repository. The procedure is essentially the same if you are using GitLab or Bitbucket.
+
+Step 1
+: Create a file named `amplify.yml` in the root of your project.
+
+```sh
+touch amplify.yml
+```
+
+Step 2
+: Copy and paste the YAML below into the file you created. Change the application versions and time zone as needed.
+
+{{< code file=amplify.yml copy=true >}}
+version: 1
+env:
+  variables:
+    # Application versions
+    DART_SASS_VERSION: 1.81.0
+    GO_VERSION: 1.23.3
+    HUGO_VERSION: 0.139.3
+    # Time zone
+    TZ: America/Los_Angeles
+    # Cache
+    HUGO_CACHEDIR: ${PWD}/.hugo
+    NPM_CONFIG_CACHE: ${PWD}/.npm
+frontend:
+  phases:
+    preBuild:
+      commands:
+        # Install Dart Sass
+        - curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz
+        - sudo tar -C /usr/local/bin -xf dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz
+        - rm dart-sass-${DART_SASS_VERSION}-linux-x64.tar.gz
+        - export PATH=/usr/local/bin/dart-sass:$PATH
+
+        # Install Go
+        - curl -LJO https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz
+        - sudo tar -C /usr/local -xf go${GO_VERSION}.linux-amd64.tar.gz
+        - rm go${GO_VERSION}.linux-amd64.tar.gz
+        - export PATH=/usr/local/go/bin:$PATH
+
+        # Install Hugo
+        - curl -LJO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz
+        - sudo tar -C /usr/local/bin -xf hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz
+        - rm hugo_extended_${HUGO_VERSION}_linux-amd64.tar.gz
+        - export PATH=/usr/local/bin:$PATH
+
+        # Check installed versions
+        - go version
+        - hugo version
+        - node -v
+        - npm -v
+        - sass --embedded --version
+
+        # Install Node.JS dependencies
+        - "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci --prefer-offline || true"
+
+        # https://github.com/gohugoio/hugo/issues/9810
+        - git config --add core.quotepath false
+    build:
+      commands:
+        - hugo --gc --minify
+  artifacts:
+    baseDirectory: public
+    files:
+      - '**/*'
+  cache:
+    paths:
+      - ${HUGO_CACHEDIR}/**/*
+      - ${NPM_CONFIG_CACHE}/**/*
+{{< /code >}}
+
+Step 3
+: Commit and push the change to your GitHub repository.
+
+```sh
+git add -A
+git commit -m "Create amplify.yml"
+git push
+```
+
+Step 4
+: Log in to your AWS account, navigate to the [Amplify Console], then press the  **Deploy an app** button.
+
+[Amplify Console]: https://console.aws.amazon.com/amplify/apps
+
+Step 5
+: Choose a source code provider, then press the **Next** button.
+
+  ![screen capture](amplify-step-05.png)
+
+Step 6
+: Authorize AWS Amplify to access your GitHub account.
+
+  ![screen capture](amplify-step-06.png)
+
+Step 7
+: Select your personal account or relevant organization.
+
+  ![screen capture](amplify-step-07.png)
+
+Step 8
+: Authorize access to one or more repositories.
+
+  ![screen capture](amplify-step-08.png)
+
+Step 9
+: Select a repository and branch, then press the **Next** button.
+
+  ![screen capture](amplify-step-09.png)
+
+Step 10
+: On the "App settings" page, scroll to the bottom then press the **Next** button. Amplify reads the `amplify.yml` file you created in Steps 1-3 instead of using the values on this page.
+
+Step 11
+: On the "Review" page, scroll to the bottom then press the **Save and deploy** button.
+
+Step 12
+: When your site has finished deploying, press the **Visit deployed URL** button to view your published site.
+
+  ![screen capture](amplify-step-11.png)
index 28c5ff841d505c67f634754a685ad153d6e29d23..45adeda1fa0da8386522d79e80bad383662875df 100644 (file)
@@ -12,6 +12,8 @@ aliases: [/tutorials/github-pages-blog/]
 
 ## Prerequisites
 
+Please complete the following tasks before continuing:
+
 1. [Create a GitHub account]
 2. [Install Git]
 3. [Create a Hugo site] and test it locally with `hugo server`.
@@ -53,10 +55,11 @@ Step 4
 {style="max-width: 280px"}
 
 Step 5
-: Create an empty file in your local repository.
+: Create a file named `hugo.yaml` in a directory named `.github/workflows`.
 
 ```text
-.github/workflows/hugo.yaml
+mkdir -p .github/workflows
+touch hugo.yaml
 ```
 
 Step 6
@@ -144,7 +147,13 @@ jobs:
 {{< /code >}}
 
 Step 7
-: Commit the change to your local repository with a commit message of something like "Add workflow", and push to GitHub.
+: Commit and push the change to your GitHub repository.
+
+```sh
+git add -A
+git commit -m "Create hugo.yaml"
+git push
+```
 
 Step 8
 : From GitHub's main menu, choose **Actions**. You will see something like this:
@@ -181,7 +190,7 @@ You may remove this step if your site, themes, and modules do not transpile Sass
 
 [Dart Sass]: /hugo-pipes/transpile-sass-to-css/#dart-sass
 
-## Additional resources
+## Other resources
 
 - [Learn more about GitHub Actions](https://docs.github.com/en/actions)
 - [Caching dependencies to speed up workflows](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows)
index a63451062701e5b171200cf02fcf30d9faf4f84d..361a40e801a0d88ee50ce2b57308ac01f15558a0 100644 (file)
@@ -11,11 +11,13 @@ toc: true
 
 ## Prerequisites
 
+Please complete the following tasks before continuing:
+
 1. [Create a Netlify account]
 2. [Install Git]
 3. [Create a Hugo site] and test it locally with `hugo server`
 4. Commit the changes to your local repository
-4. Push the local repository to your [GitHub], [GitLab], or [Bitbucket] account
+5. Push the local repository to your [GitHub], [GitLab], or [Bitbucket] account
 
 [Bitbucket]: https://bitbucket.org/product
 [Create a Hugo site]: /getting-started/quick-start/
@@ -34,64 +36,64 @@ Step 1
 Step 2
 : Select your deployment method.
 
-![screen capture](netlify-step-02.png)
+  ![screen capture](netlify-step-02.png)
 
 Step 3
 : Authorize Netlify to connect with your GitHub account by pressing the **Authorize Netlify** button.
 
-![screen capture](netlify-step-03.png)
+  ![screen capture](netlify-step-03.png)
 
 Step 4
 : Press the **Configure Netlify on GitHub** button.
 
-![screen capture](netlify-step-04.png)
+  ![screen capture](netlify-step-04.png)
 
 Step 5
 : Install the Netlify app by selecting your GitHub account.
 
-![screen capture](netlify-step-05.png)
+  ![screen capture](netlify-step-05.png)
 
 Step 6
 : Press the **Install** button.
 
-![screen capture](netlify-step-06.png)
+  ![screen capture](netlify-step-06.png)
 
 Step 7
 : Click on the site's repository from the list.
 
-![screen capture](netlify-step-07.png)
+  ![screen capture](netlify-step-07.png)
 
 Step 8
 : Set the site name and branch from which to deploy.
 
-![screen capture](netlify-step-08.png)
+  ![screen capture](netlify-step-08.png)
 
 Step 9
 : Define the build settings, press the **Add environment variables** button, then press the **New variable** button.
 
-![screen capture](netlify-step-09.png)
+  ![screen capture](netlify-step-09.png)
 
 Step 10
 : Create a new environment variable named `HUGO_VERSION` and set the value to the [latest version].
 
 [latest version]: https://github.com/gohugoio/hugo/releases/latest
 
-![screen capture](netlify-step-10.png)
+  ![screen capture](netlify-step-10.png)
 
 Step 11
 : Press the "Deploy my new site" button at the bottom of the page.
 
-![screen capture](netlify-step-11.png)
+  ![screen capture](netlify-step-11.png)
 
 Step 12
 : At the bottom of the screen, wait for the deploy to complete, then click on the deploy log entry.
 
-![screen capture](netlify-step-12.png)
+  ![screen capture](netlify-step-12.png)
 
 Step 13
 : Press the **Open production deploy** button to view the live site.
 
-![screen capture](netlify-step-13.png)
+  ![screen capture](netlify-step-13.png)
 
 ## Configuration file
 
index 913e4f77566da5c3e6ee9b8aacb9791ee4f43920..d14379a1068edc5736d8db7bc0fc95b213a9c8da 100644 (file)
@@ -133,8 +133,6 @@ Also see the [CLI Doc](/commands/hugo_mod_clean/).
 
 ## Module workspaces
 
-{{< new-in 0.109.0 >}}
-
 Workspace support was added in [Go 1.18](https://go.dev/blog/get-familiar-with-workspaces) and Hugo got solid support for it in the `v0.109.0` version.
 
 A common use case for a workspace is to simplify local development of a site with its theme modules.
index cf99049fe4625e575a0862cea7b334e137fc2cba..57c71e8ab915589396748254b0f2becb617de78e 100755 (executable)
@@ -88,7 +88,7 @@ HUGO_ENVIRONMENT
 : The value e.g. set with `hugo -e production` (defaults to `production` for `hugo` and `development` for `hugo server`).
 
 HUGO_PUBLISHDIR
-: {{< new-in 0.109.0 >}} The absolute path to the publish directory (the `public` directory). Note that the value will always point to a directory on disk even when running `hugo server` in memory mode. If you write to this folder from PostCSS when running the server, you could run the server with one of these flags:
+: The absolute path to the publish directory (the `public` directory). Note that the value will always point to a directory on disk even when running `hugo server` in memory mode. If you write to this folder from PostCSS when running the server, you could run the server with one of these flags:
 
 ```sh
 hugo server --renderToDisk
index 67ef4b7cdc7a00ae8702cdbbf83d9b8d74bdf348..886488ca6a714f2b40fb2ac0254df92c1a49456e 100644 (file)
@@ -42,7 +42,7 @@ transpiler
 targetPath
 : (`string`) If not set, the transformed resource's target path will be the original path of the asset file with its extension replaced by `.css`.
 
-vars {{< new-in 0.109.0 >}}
+vars
 : (`map`) A map of key-value pairs that will be available in the `hugo:vars` namespace. Useful for [initializing Sass variables from Hugo templates](https://discourse.gohugo.io/t/42053/).
 
 ```scss
index 7a80a522e5599328ba7f05a90f719a88a330ff27..b6fc23c74e749b4fb9cd9208faa4115cdcdc02bd 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 Hugo is available in three editions: standard, extended, and extended/deploy. While the standard edition provides core functionality, the extended and extended/deploy editions offer advanced features.
index ea6eaa8fe45be8e877b9bf9bb54b321962c7c47b..65ec2a12f2df16f806348e418c085160f326ae79 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 ## Prerequisites
index 55f7cb85bd00db89cc6488ab50271d27f9201f46..34411cddd1a82090b306bc197bf8f91c82d07060 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 ## Prebuilt binaries
index 6829c50ce18eeb8c6012da725360879c3313f348..b3039d18ae18b0553afcad187593945968f57817 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 ## Build from source
index 6cd7a524fde4d6994b517cd90beeb78029614a4e..14f48174ef68e0e9cd8e0915007a6d1a5b30f6de 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 ### Homebrew
index 2403bf47b59a82fe0f1afc820f44f78ba63bb982..14479d00446cdc7f9e2cfad04d559908c7aa5657 100644 (file)
@@ -192,6 +192,16 @@ sudo eopkg install hugo
 
 [Solus]: https://getsol.us/
 
+### Void Linux
+
+To install the extended edition of Hugo on [Void Linux]:
+
+```sh
+sudo xbps-install -S hugo
+```
+
+[Void Linux]: https://voidlinux.org/
+
 {{% include "installation/_common/04-build-from-source.md" %}}
 
 ## Comparison
diff --git a/content/en/methods/menu-entry/PageRef.md b/content/en/methods/menu-entry/PageRef.md
new file mode 100644 (file)
index 0000000..5d99d62
--- /dev/null
@@ -0,0 +1,120 @@
+---
+title: PageRef
+description: Returns the `pageRef` property of the given menu entry.
+categories: []
+keywords: []
+action:
+  related:
+    - /methods/menu-entry/URL
+  returnType: string
+  signatures: [MENUENTRY.PageRef]
+toc: true
+---
+
+The use case for this method is rare.
+
+In almost also scenarios you should use the [`URL`] method instead.
+
+## Explanation
+
+If you specify a `pageRef` property when [defining a menu entry] in your site configuration, Hugo looks for a matching page when rendering the entry.
+
+If a matching page is found:
+
+- The [`URL`] method returns the page's relative permalink
+- The [`Page`] method returns the corresponding `Page` object
+- The [`HasMenuCurrent`] and [`IsMenuCurrent`] methods on a `Page` object return the expected values
+
+If a matching page is not found:
+
+- The [`URL`] method returns the entry's `url` property if set, else an empty string
+- The [`Page`] method returns nil
+- The [`HasMenuCurrent`] and [`IsMenuCurrent`] methods on a `Page` object return `false`
+
+{{% note %}}
+In almost also scenarios you should use the [`URL`] method instead.
+
+[`URL`]: /methods/menu-entry/url/
+{{% /note %}}
+
+[defining a menu entry]: /content-management/menus/#define-in-site-configuration
+[`Page`]: /methods/menu-entry/page/
+[`URL`]: /methods/menu-entry/url/
+[`IsMenuCurrent`]: /methods/page/ismenucurrent/
+[`HasMenuCurrent`]: /methods/page/hasmenucurrent/
+[`RelPermalink`]: /methods/page/relpermalink/
+
+## Example
+
+This example is contrived.
+
+{{% note %}}
+In almost also scenarios you should use the [`URL`] method instead.
+
+[`URL`]: /methods/menu-entry/url/
+{{% /note %}}
+
+
+Consider this content structure:
+
+```text
+content/
+├── products.md
+└── _index.md
+```
+
+And this menu definition:
+
+{{< code-toggle file=hugo >}}
+[[menus.main]]
+name = 'Products'
+pageRef = '/products'
+weight = 10
+[[menus.main]]
+name = 'Services'
+pageRef = '/services'
+weight = 20
+{{< /code-toggle >}}
+
+With this template code:
+
+{{< code file=layouts/partials/menu.html >}}
+<ul>
+  {{ range .Site.Menus.main }}
+    <li><a href="{{ .URL }}">{{ .Name }}</a></li>
+  {{ end }}
+</ul>
+{{< /code >}}
+
+Hugo render this HTML:
+
+```html
+<ul>
+  <li><a href="/products/">Products</a></li>
+  <li><a href="">Services</a></li>
+</ul>
+```
+
+In the above note that the `href` attribute of the second `anchor` element is blank because Hugo was unable to find the "services" page.
+
+With this template code:
+
+
+{{< code file=layouts/partials/menu.html >}}
+<ul>
+  {{ range .Site.Menus.main }}
+    <li><a href="{{ or .URL .PageRef }}">{{ .Name }}</a></li>
+  {{ end }}
+</ul>
+{{< /code >}}
+
+Hugo renders this HTML:
+
+```html
+<ul>
+  <li><a href="/products/">Products</a></li>
+  <li><a href="/services">Services</a></li>
+</ul>
+```
+
+In the above note that Hugo populates the `href` attribute of the second `anchor` element with the `pageRef` property as defined in the site configuration because the template code falls back to the `PageRef` method.
index fbfce062a53cef03e780361221759de257c694a2..da3d584d17206395eace2f7fa986488c2c5a87ac 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 In this site configuration we enable rendering of [emoji shortcodes], and add emoji shortcodes before (pre) and after (post) each menu entry:
index 3bf36d9aaa22033df272921e68bee30ab052d3e6..da5cf2ca3d1f9ecf13afd5bda450fa07c3e99dea 100644 (file)
@@ -16,8 +16,6 @@ action:
   signatures: [PAGE.Ancestors]
 ---
 
-{{< new-in 0.109.0 >}}
-
 {{% include "methods/page/_common/definition-of-section.md" %}}
 
 With this content structure:
index c54a77371e87a8315f1de8495b9e318057b33e9d..a05916d79d901b9f16e649aaab78ed63f9b7f5f1 100644 (file)
@@ -141,6 +141,7 @@ Some providers perform deep clones by default, others allow you to configure the
 
 Hosting service | Default clone depth | Configurable
 :-- | :-- | :--
+AWS Amplify | Deep | N/A
 Cloudflare Pages | Shallow | Yes [^CFP]
 DigitalOcean App Platform | Deep | N/A
 GitHub Pages | Shallow | Yes [^GHP]
index a092f22c03ba46da14ea4b29d64a4c41d8cb41c3..24ce462c923b3fef12f9f512d3b5f162cf31a8db 100644 (file)
@@ -28,4 +28,8 @@ If the `Page` object associated with the menu entry is a section, this method al
 
 See [menu templates] for a complete example.
 
+{{% note %}}
+When using this method you must either define the menu entry in front matter, or specify a `pageRef` property when defining the menu entry in your site configuration.
+{{% /note %}}
+
 [menu templates]: /templates/menu/#example
index 8a939b1a123b9ed13fe729b8b6ab4ed2d4f1257d..a16be51eef65f5824225f19b57aa31be12a383c5 100644 (file)
@@ -26,4 +26,8 @@ aliases: [/functions/ismenucurrent]
 
 See [menu templates] for a complete example.
 
+{{% note %}}
+When using this method you must either define the menu entry in front matter, or specify a `pageRef` property when defining the menu entry in your site configuration.
+{{% /note %}}
+
 [menu templates]: /templates/menu/#example
index a81fa71a38db9fee1125ca3133f24130e2776bac..484c27fd5c694dda99a8ba6ec111066004466774 100644 (file)
@@ -1,11 +1,14 @@
 ---
 title: Store
+linktitle: PAGE.Store
 description: Returns a persistent "scratch pad" on the given page to store and manipulate data.
 categories: []
 keywords: []
 action:
   related:
   - methods/page/scratch
+  - methods/site/store
+  - functions/hugo/store
   - functions/collections/NewScratch
   returnType: maps.Scratch
   signatures: [PAGE.Store]
index 7dc60078939450a9bf83148ceda3b0bc4122fea8..79e22b10dbebe022a03a60b4b0e70c64634ed628 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 A _section_ is a top-level content directory, or any content directory with an&nbsp;_index.md&nbsp;file.
index 0d1436e11fbc9270bf379c8bd7a7c514d62b4197..c71392c8fc99027fe38f9c639d81287f381ed89d 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 Hugo determines the _next_ and _previous_ page by sorting the site's collection of regular pages according to this sorting hierarchy:
index 6c558b69edace2e1fab1a3ab3916e458e929e856..f2126eaeed13490ecb7aa8bcf459da0d6774f17a 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 Hugo determines the _next_ and _previous_ page by sorting the current section's regular pages according to this sorting hierarchy:
index d21211a3d8b3d900e18367ef232c6972534864dd..df89447f73c1718aae72558a5e05cf027c762878 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 Hugo generates one or more files per page when building a site. For example, when rendering home, [section], [taxonomy], and [term] pages, Hugo generates an HTML file and an RSS file. Both HTML and RSS are built-in _output formats_. Create multiple output formats, and control generation based on [page kind], or by enabling one or more output formats for one or more pages. See&nbsp;[details].
 
index 5e7111fe52bd3a7b7229de60742396c2c72703b3..5390e7b46547f602df13032a78644f9127e84ae9 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 Get IDENTIFIER
index b2650cddefe9c083a851a64b5bb84c26588cda80..92a97cdd512ecba7122f6eb5dd518a7518eeb974 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 ## Methods
index bb5be82f6c340dd6a95f003fff04ff2bea432652..e2997a1bd24d8ba4d4c5e3216ee7edf01c3e908b 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 For the optional sort order, specify either `asc` for ascending order, or `desc` for descending order.
index e0d05de845cf6c9437c7d1f9e443c4e4ddf4b205..5407839927a46f872a29286c06f60c20ab40adef 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 Hugo determines the _next_ and _previous_ page by sorting the page collection according to this sorting hierarchy:
index 4ea4d1b8745e5fadbec5fc1732fc37e237396f11..5df2963e39a58ea342cf6dcbd05ff3a809cedca0 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 {{% note %}}
index b12a21d3a607e7d8d87331d03e8db14acd6653b5..395217328e2831cfeb6e4b1019b4ce007aae984e 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 ## Process specification
index 6f3580d0fcfa433b4a454e22b98bcb644e2c4bc1..41393fa222c8cc0389df623f297f167d3b5072ce 100644 (file)
@@ -11,6 +11,10 @@ action:
 
 The `Ordinal` method returns the zero-based ordinal of the shortcode in relation to its parent. If the parent is the page itself, the ordinal represents the position of this shortcode in the page content.
 
+{{% note %}}
+Hugo  increments the ordinal with each shortcode call, regardless of the specific shortcode type. This means that the ordinal value is tracked sequentially across all shortcodes within a given page.
+{{% /note %}}
+
 This method is useful for, among other things, assigning unique element IDs when a shortcode is called two or more times from the same page. For example:
 
 {{< code file=content/about.md lang=md >}}
index fcfc99d53860d5782c24fcb0e7b80a192044f0cb..811d9f9eebcfe6312947efe51644a09fa9b19298 100644 (file)
@@ -10,7 +10,17 @@ action:
   signatures: [SHORTCODE.Scratch]
 ---
 
-The `Scratch` method within a shortcode creates a [scratch pad] to store and manipulate data. The scratch pad is scoped to the shortcode, and is reset on server rebuilds.
+{{% deprecated-in 0.139.0 %}}
+Use the [`SHORTCODE.Store`] method instead.
+
+This is a soft deprecation. This method will be removed in a future release, but the removal date has not been established. Although Hugo will not emit a warning if you continue to use this method, you should begin using `SHORTCODE.Store` as soon as possible.
+
+Beginning with v0.139.0 the `SHORTCODE.Scratch` method is aliased to `SHORTCODE.Store`.
+
+[`SHORTCODE.Store`]: /methods/shortcode/store/
+{{% /deprecated-in %}}
+
+The `Scratch` method within a shortcode creates a [scratch pad] to store and manipulate data. The scratch pad is scoped to the shortcode.
 
 {{% note %}}
 With the introduction of the [`newScratch`] function, and the ability to [assign values to template variables] after initialization, the `Scratch` method within a shortcode is obsolete.
diff --git a/content/en/methods/shortcode/Store.md b/content/en/methods/shortcode/Store.md
new file mode 100644 (file)
index 0000000..f7be8c8
--- /dev/null
@@ -0,0 +1,29 @@
+---
+title: Store
+description: Returns a "Store pad" scoped to the shortcode to store and manipulate data. 
+categories: []
+keywords: []
+action:
+  related:
+    - functions/collections/NewScratch
+    - methods/page/Store
+    - methods/site/Store
+    - functions/hugo/Store
+  returnType: maps.Store
+  signatures: [SHORTCODE.Store]
+---
+
+{{< new-in 0.139.0 >}}
+
+The `Store` method within a shortcode creates a [scratch pad] to store and manipulate data. The scratch pad is scoped to the shortcode.
+
+{{% note %}}
+With the introduction of the [`newScratch`] function, and the ability to [assign values to template variables] after initialization, the `Store` method within a shortcode is mostly obsolete.
+
+[assign values to template variables]: https://go.dev/doc/go1.11#text/template
+[`newScratch`]: /functions/collections/newScratch/
+{{% /note %}}
+
+[Store pad]: /getting-started/glossary/#scratch-pad
+
+{{% include "methods/page/_common/scratch-methods.md" %}}
diff --git a/content/en/methods/site/Store.md b/content/en/methods/site/Store.md
new file mode 100644 (file)
index 0000000..1c54007
--- /dev/null
@@ -0,0 +1,126 @@
+---
+title: Store
+linktitle: site.Store
+description: Returns a persistent "scratch pad" on the given site to store and manipulate data.
+categories: []
+keywords: []
+action:
+  related:
+  - methods/page/store
+  - functions/hugo/store
+  - functions/collections/NewScratch
+  returnType: maps.Scratch
+  signatures: [site.Store]
+toc: true
+---
+
+{{< new-in 0.139.0 >}}
+
+The `Store` method on a `Site` object creates a persistent [scratch pad] to store and manipulate data. To create a locally scoped scratch pad that is not attached to a `Site` object, use the [`newScratch`] function.
+
+[`Scratch`]: /methods/site/scratch/
+[`newScratch`]: /functions/collections/newscratch/
+[scratch pad]: /getting-started/glossary/#scratch-pad
+
+## Methods
+
+###### Set
+
+Sets the value of a given key.
+
+```go-html-template
+{{ site.Store.Set "greeting" "Hello" }}
+```
+
+###### Get
+
+Gets the value of a given key.
+
+```go-html-template
+{{ site.Store.Set "greeting" "Hello" }}
+{{ site.Store.Get "greeting" }} → Hello
+```
+
+###### Add
+
+Adds a given value to existing value(s) of the given key.
+
+For single values, `Add` accepts values that support Go's `+` operator. If the first `Add` for a key is an array or slice, the following adds will be appended to that list.
+
+```go-html-template
+{{ site.Store.Set "greeting" "Hello" }}
+{{ site.Store.Add "greeting" "Welcome" }}
+{{ site.Store.Get "greeting" }} → HelloWelcome
+```
+
+```go-html-template
+{{ site.Store.Set "total" 3 }}
+{{ site.Store.Add "total" 7 }}
+{{ site.Store.Get "total" }} → 10
+```
+
+```go-html-template
+{{ site.Store.Set "greetings" (slice "Hello") }}
+{{ site.Store.Add "greetings" (slice "Welcome" "Cheers") }}
+{{ site.Store.Get "greetings" }} → [Hello Welcome Cheers]
+```
+
+###### SetInMap
+
+Takes a `key`, `mapKey` and `value` and adds a map of `mapKey` and `value` to the given `key`.
+
+```go-html-template
+{{ site.Store.SetInMap "greetings" "english" "Hello" }}
+{{ site.Store.SetInMap "greetings" "french" "Bonjour" }}
+{{ site.Store.Get "greetings" }} → map[english:Hello french:Bonjour]
+```
+
+###### DeleteInMap
+
+Takes a `key` and `mapKey` and removes the map of `mapKey` from the given `key`.
+
+```go-html-template
+{{ site.Store.SetInMap "greetings" "english" "Hello" }}
+{{ site.Store.SetInMap "greetings" "french" "Bonjour" }}
+{{ site.Store.DeleteInMap "greetings" "english" }}
+{{ site.Store.Get "greetings" }} → map[french:Bonjour]
+```
+
+###### GetSortedMapValues
+
+Returns an array of values from `key` sorted by `mapKey`.
+
+```go-html-template
+{{ site.Store.SetInMap "greetings" "english" "Hello" }}
+{{ site.Store.SetInMap "greetings" "french" "Bonjour" }}
+{{ site.Store.GetSortedMapValues "greetings" }} → [Hello Bonjour]
+```
+
+###### Delete
+
+Removes the given key.
+
+```go-html-template
+{{ site.Store.Set "greeting" "Hello" }}
+{{ site.Store.Delete "greeting" }}
+```
+
+## Determinate values
+
+The `Store` method is often used to set scratch pad values within a shortcode, a partial template called by a shortcode, or by a Markdown render hook. In all three cases, the scratch pad values are indeterminate until Hugo renders the page content.
+
+If you need to access a scratch pad value from a parent template, and the parent template has not yet rendered the page content, you can trigger content rendering by assigning the returned value to a [noop] variable:
+
+[noop]: /getting-started/glossary/#noop
+
+```go-html-template
+{{ $noop := .Content }}
+{{ site.Store.Get "mykey" }}
+```
+
+You can also trigger content rendering with the `ContentWithoutSummary`, `FuzzyWordCount`, `Len`, `Plain`, `PlainWords`, `ReadingTime`, `Summary`, `Truncated`, and `WordCount` methods. For example:
+
+```go-html-template
+{{ $noop := .WordCount }}
+{{ site.Store.Get "mykey" }}
+```
index ef78c8eaeb1fa6f5ac4a15d053233824a45f9c87..928ec085aa61a0070186538791ff6163a40ddfa3 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 Before we can use a `Taxonomy` method, we need to capture a `Taxonomy` object.
index 7201ad3188a6d30ed741c9ea672fa8b61a228aeb..a23c26ef54dfad0939babf04402239acd39b410e 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 An ordered taxonomy is a slice, where each element is an object that contains the term and a slice of its weighted pages.
index de1316cbab7cc63b853bf2a43336bb3d096b7bd2..1d467aeefe372a06921365d0e0036f2b3b482339 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 ## PageInner details
index d322cb88dc7de66e797179588c5443e53984fe80..f43df06c7c6070b3c09040a5ecaac2aab572d88c 100755 (executable)
@@ -122,7 +122,7 @@ For example, to create a code block render hook to render [Mermaid] diagrams:
 
 {{< code file=layouts/_default/_markup/render-codeblock-mermaid.html copy=true >}}
 <pre class="mermaid">
-  {{- .Inner | safeHTML }}
+  {{- .Inner | htmlEscape | safeHTML }}
 </pre>
 {{ .Page.Store.Set "hasMermaid" true }}
 {{< /code >}}
index 89cc095f5f126ba48756cc1d72b8bfed4169d88e..24bbee96ead1cee2261d61493d34caf6ac52b08c 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# Do not remove front matter.
+_comment: Do not remove front matter.
 ---
 
 {{% note %}}
index e5650149a4b241a149fe6430dfbfd5289b0485d3..f8f50dfaa187af906fa0bdd313337e535170a0fe 100644 (file)
@@ -167,7 +167,7 @@ Whitespace includes spaces, horizontal tabs, carriage returns, and newlines.
 
 ### Pipes
 
-Within a template action you may [pipe] a value to function or method. The piped value becomes the final argument to the function or method. For example, these are equivalent:
+Within a template action you may [pipe] a value to function or method. The piped value becomes the final argument to the function or method. For example, these are equivalent:
 
 [pipe]: /getting-started/glossary/#pipeline
 
index 8d97c21e067a86e10873f6ff86ec7b04575b32cd..4999bfc0b82257a7b9281d40c8aedb89bad41d13 100644 (file)
@@ -2440,17 +2440,6 @@ tpl:
           treating values as key-value pairs.  The number of values must be even.
           The keys can be string slices, which will create the needed nested structure.
         Examples: []
-      EchoParam:
-        Aliases:
-        - echoParam
-        Args:
-        - c
-        - k
-        Description: |-
-          EchoParam returns the value in the collection c with key k if is set; otherwise, it returns an
-          empty string.
-          Deprecated: Use the index function instead.
-        Examples: []
       First:
         Aliases:
         - first
@@ -3119,6 +3108,11 @@ tpl:
         Args: null
         Description: ""
         Examples: null
+      Store:
+        Aliases: null
+        Args: null
+        Description: ""
+        Examples: null
       Version:
         Aliases: null
         Args: null
@@ -3384,11 +3378,6 @@ tpl:
         Args: null
         Description: ""
         Examples: null
-      NumFmt:
-        Aliases: null
-        Args: null
-        Description: ""
-        Examples: null
       Translate:
         Aliases:
         - i18n
@@ -4002,11 +3991,6 @@ tpl:
         Args: null
         Description: ""
         Examples: null
-      DisqusShortname:
-        Aliases: null
-        Args: null
-        Description: ""
-        Examples: null
       ForEeachIdentityByName:
         Aliases: null
         Args: null
@@ -4017,11 +4001,6 @@ tpl:
         Args: null
         Description: ""
         Examples: null
-      GoogleAnalytics:
-        Aliases: null
-        Args: null
-        Description: ""
-        Examples: null
       Home:
         Aliases: null
         Args: null
@@ -4037,11 +4016,6 @@ tpl:
         Args: null
         Description: ""
         Examples: null
-      IsServer:
-        Aliases: null
-        Args: null
-        Description: ""
-        Examples: null
       Key:
         Aliases: null
         Args: null
@@ -4102,11 +4076,6 @@ tpl:
         Args: null
         Description: ""
         Examples: null
-      RSSLink:
-        Aliases: null
-        Args: null
-        Description: ""
-        Examples: null
       RegularPages:
         Aliases: null
         Args: null
@@ -4132,6 +4101,11 @@ tpl:
         Args: null
         Description: ""
         Examples: null
+      Store:
+        Aliases: null
+        Args: null
+        Description: ""
+        Examples: null
       Taxonomies:
         Aliases: null
         Args: null
@@ -4457,6 +4431,11 @@ tpl:
         Examples:
         - - '{{ "aabbaa" | strings.TrimRight "a" }}'
           - aabb
+      TrimSpace:
+        Aliases: null
+        Args: null
+        Description: ""
+        Examples: null
       TrimSuffix:
         Aliases: null
         Args:
diff --git a/go.mod b/go.mod
index a9d63af19c06935f06c4d02e246929f721a0af60..5e909630fcacb5b07e4b8da9e938dbdff3ef5f3b 100644 (file)
--- a/go.mod
+++ b/go.mod
@@ -1,5 +1,5 @@
 module github.com/gohugoio/hugoDocs
 
-go 1.16
+go 1.22.0
 
-require github.com/gohugoio/gohugoioTheme v0.0.0-20241105120803-6c6e5fb8f8af // indirect
+require github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1 // indirect
diff --git a/go.sum b/go.sum
index 5c0e10736f96673b1dea3b26f1da4598137aa3e0..e1863b60e602dc2f7c95ad8c69494ac25a37bda5 100644 (file)
--- a/go.sum
+++ b/go.sum
@@ -1,4 +1,2 @@
-github.com/gohugoio/gohugoioTheme v0.0.0-20241105040910-e9dac9458255 h1:kaSc7cVAifWPRzmECr7il0YXgXBM+H2ZrGcNnb03S8k=
-github.com/gohugoio/gohugoioTheme v0.0.0-20241105040910-e9dac9458255/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
-github.com/gohugoio/gohugoioTheme v0.0.0-20241105120803-6c6e5fb8f8af h1:H8Oa4AEJs2yz8w1Gq9hEGBJNukkKo05OAaIEsHMd63k=
-github.com/gohugoio/gohugoioTheme v0.0.0-20241105120803-6c6e5fb8f8af/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
+github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1 h1:d6XNQ4QYvJGIE8vMejUFTD89AWaPDywcLivzWpEU0qE=
+github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
index 5079ac44d532236f3474cf3f72ee16203fa772b5..995057a7551410b2bc48a3629c070e8ac052a799 100644 (file)
@@ -3,7 +3,7 @@
   command = "hugo --gc --minify"
 
   [build.environment]
-    HUGO_VERSION = "0.138.0"
+    HUGO_VERSION = "0.139.4"
 
 [context.production.environment]
   HUGO_ENV           = "production"