Squashed 'docs/' changes from 327003421..39a7fac34
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 31 Oct 2021 12:51:51 +0000 (13:51 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 31 Oct 2021 12:51:51 +0000 (13:51 +0100)
39a7fac34 Add .hugo_build.lock to .gitignore
920c716a4 fix a typo: to -> two (#1545)
6f0ba9593 Remove godocref from front matter (#1543)
8ec3d5948 remove link to wercker (#1544)
b56008719 Delete deployment-with-wercker.md (#1542)
e33d29b02 Fix broken links (#1538)
29e9d4c21 Sort commenting systems (#1541)
0b7ea60a7 Delete the news page "HTTP/2 Server Push in Hugo"
6e1515857 Fix quick-start.md (#1525)
62168ab35 Update comments.md (#1535)
d92191512 Small typo (#1539)
129c8834a Correct the PostCSS noMap default value (#1534)
6a5b29fcc Add example to index function (#1536)
e3dd8c507 Update output-formats.md
0c9321ca0 Remove reference to using LiveReload in production environment
4072d6776 Mod testing
09fabf7d6 Fix typo (#1524)
2fce813c8 Fix grammatical error in quick-start.md (#1523)
45230ab4a Hugo Mod testing
2dd4cd9e7 Update index.md
2c3ed62fd netlify: Bump to 0.88.1
648e2a007 Merge branch 'tempv0.88.1'
f216eade1 releaser: Add release notes to /docs for release of 0.88.1
8a7b64d4b Fix typographical errors in 0.88.0 release notes
a4bf86300 Release 0.88
738bb8f38 releaser: Add release notes to /docs for release of 0.88.0
8fcf2c55d highlight: Remove some pygments references
f2b173de2 HTTPS link
c88881c8e Adding link to nginx documentation
6b0a74fe0 Fix typos in docs (#1516)
498b8f0f1 Fix typos in time.Format (#1515)
28723fad6 Fix taxonomy and term examples (#1514)
3ffd00e12 Update front-matter.md
7cc1da82e Fix grammar in 0.86.1 release notes (#1510)
0009c51c3 Update docs helper
7e2f430f4 Update index.md
7857eae7e releaser: Add release notes to /docs for release of 0.87.0
1f08b684b releaser: Add release notes to /docs for release of 0.87.0
36a9e701c docs: Adjust config docs
0f588438e docs: Regen CLI docs
1b4682cd8 docs: Regen docs helper
bc8bbaae9 Merge commit 'bd77f6e1c99e04a476f0b1bb4e44569134e02399' into release-0.87.0
6f2480643 docs: Adjust time zone docs

git-subtree-dir: docs
git-subtree-split: 39a7fac343c289906db644c96079fdcc0298582f

173 files changed:
.gitignore
archetypes/default.md
archetypes/functions.md
config/_default/markup.toml
content/en/commands/hugo.md
content/en/commands/hugo_completion.md [new file with mode: 0644]
content/en/commands/hugo_completion_bash.md [new file with mode: 0644]
content/en/commands/hugo_completion_fish.md [new file with mode: 0644]
content/en/commands/hugo_completion_powershell.md [new file with mode: 0644]
content/en/commands/hugo_completion_zsh.md [new file with mode: 0644]
content/en/content-management/comments.md
content/en/content-management/formats.md
content/en/content-management/front-matter.md
content/en/content-management/shortcodes.md
content/en/content-management/syntax-highlighting.md
content/en/contribute/development.md
content/en/functions/GetPage.md
content/en/functions/RenderString.md
content/en/functions/_index.md
content/en/functions/abslangurl.md
content/en/functions/absurl.md
content/en/functions/adddate.md
content/en/functions/after.md
content/en/functions/apply.md
content/en/functions/base64.md
content/en/functions/chomp.md
content/en/functions/countrunes.md
content/en/functions/countwords.md
content/en/functions/dateformat.md
content/en/functions/default.md
content/en/functions/delimit.md
content/en/functions/dict.md
content/en/functions/echoparam.md
content/en/functions/emojify.md
content/en/functions/eq.md
content/en/functions/fileExists.md
content/en/functions/findRe.md
content/en/functions/first.md
content/en/functions/float.md
content/en/functions/format.md
content/en/functions/ge.md
content/en/functions/get.md
content/en/functions/getenv.md
content/en/functions/gt.md
content/en/functions/hasPrefix.md
content/en/functions/haschildren.md
content/en/functions/hasmenucurrent.md
content/en/functions/highlight.md
content/en/functions/hmac.md
content/en/functions/htmlEscape.md
content/en/functions/htmlUnescape.md
content/en/functions/hugo.md
content/en/functions/humanize.md
content/en/functions/i18n.md
content/en/functions/images/index.md
content/en/functions/in.md
content/en/functions/index-function.md
content/en/functions/int.md
content/en/functions/intersect.md
content/en/functions/ismenucurrent.md
content/en/functions/isset.md
content/en/functions/jsonify.md
content/en/functions/lang.Merge.md
content/en/functions/lang.md
content/en/functions/last.md
content/en/functions/le.md
content/en/functions/len.md
content/en/functions/lower.md
content/en/functions/lt.md
content/en/functions/markdownify.md
content/en/functions/math.md
content/en/functions/md5.md
content/en/functions/ne.md
content/en/functions/now.md
content/en/functions/os.Stat.md
content/en/functions/param.md
content/en/functions/partialCached.md
content/en/functions/path.Base.md
content/en/functions/path.Dir.md
content/en/functions/path.Ext.md
content/en/functions/path.Join.md
content/en/functions/path.Split.md
content/en/functions/plainify.md
content/en/functions/pluralize.md
content/en/functions/print.md
content/en/functions/printf.md
content/en/functions/println.md
content/en/functions/querify.md
content/en/functions/range.md
content/en/functions/readdir.md
content/en/functions/readfile.md
content/en/functions/ref.md
content/en/functions/reflect.IsMap.md
content/en/functions/reflect.IsSlice.md
content/en/functions/relLangURL.md
content/en/functions/relref.md
content/en/functions/relurl.md
content/en/functions/render.md
content/en/functions/replace.md
content/en/functions/replacere.md
content/en/functions/safeCSS.md
content/en/functions/safeHTML.md
content/en/functions/safeHTMLAttr.md
content/en/functions/safeJS.md
content/en/functions/safeURL.md
content/en/functions/scratch.md
content/en/functions/seq.md
content/en/functions/sha.md
content/en/functions/shuffle.md
content/en/functions/singularize.md
content/en/functions/site.md
content/en/functions/slice.md
content/en/functions/slicestr.md
content/en/functions/sort.md
content/en/functions/split.md
content/en/functions/string.md
content/en/functions/strings.Count.md
content/en/functions/strings.HasSuffix.md
content/en/functions/strings.Repeat.md
content/en/functions/strings.RuneCount.md
content/en/functions/strings.TrimLeft.md
content/en/functions/strings.TrimPrefix.md
content/en/functions/strings.TrimRight.md
content/en/functions/strings.TrimSuffix.md
content/en/functions/substr.md
content/en/functions/templates.Exists.md
content/en/functions/time.md
content/en/functions/title.md
content/en/functions/trim.md
content/en/functions/truncate.md
content/en/functions/union.md
content/en/functions/uniq.md
content/en/functions/unix.md
content/en/functions/upper.md
content/en/functions/urlize.md
content/en/functions/urls.Parse.md
content/en/functions/where.md
content/en/functions/with.md
content/en/getting-started/configuration.md
content/en/getting-started/installing.md
content/en/getting-started/quick-start.md
content/en/getting-started/usage.md
content/en/hosting-and-deployment/deployment-with-wercker.md [deleted file]
content/en/hosting-and-deployment/hosting-on-firebase.md
content/en/hugo-pipes/postcss.md
content/en/news/0.14-relnotes/index.md
content/en/news/0.86.1-relnotes/index.md
content/en/news/0.87.0-relnotes/featured.png [new file with mode: 0644]
content/en/news/0.87.0-relnotes/index.md [new file with mode: 0644]
content/en/news/0.88.0-relnotes/featured.png [new file with mode: 0644]
content/en/news/0.88.0-relnotes/index.md [new file with mode: 0644]
content/en/news/0.88.1-relnotes/index.md [new file with mode: 0644]
content/en/news/http2-server-push-in-hugo.md [deleted file]
content/en/readfiles/pages-vs-site-pages.md
content/en/templates/404.md
content/en/templates/alternatives.md
content/en/templates/base.md
content/en/templates/data-templates.md
content/en/templates/files.md
content/en/templates/introduction.md
content/en/templates/lookup-order.md
content/en/templates/output-formats.md
content/en/templates/shortcode-templates.md
content/en/templates/template-debugging.md
content/zh/templates/base.md
data/docs.json
data/homepagetweets.toml
netlify.toml
resources/_gen/images/news/0.87.0-relnotes/featured_hud7315cc4b84c00922361254b17154b9c_104936_480x0_resize_catmullrom_3.png [new file with mode: 0644]
resources/_gen/images/news/0.87.0-relnotes/featured_hud7315cc4b84c00922361254b17154b9c_104936_640x0_resize_catmullrom_3.png [new file with mode: 0644]
resources/_gen/images/news/0.88.0-relnotes/featured_hubd2e74572b88af11154b43148569d005_87331_480x0_resize_catmullrom_3.png [new file with mode: 0644]
resources/_gen/images/news/0.88.0-relnotes/featured_hubd2e74572b88af11154b43148569d005_87331_640x0_resize_catmullrom_3.png [new file with mode: 0644]
static/npmjs/index.html [new file with mode: 0644]

index 6f4431f426a3bd3634174da8b0ee657652945a8d..bad85a189035d3f47c47b7b9850c4d546f7d404f 100644 (file)
@@ -3,4 +3,5 @@
 node_modules
 nohup.out
 .DS_Store
-trace.out
\ No newline at end of file
+trace.out
+.hugo_build.lock
index f30f01f742b1fb06c5c1cddcbfd6c49d5ffd09fd..bd2ad411727c536de3be75e5c3aa847f7612de48 100644 (file)
@@ -1,7 +1,6 @@
 ---
 linktitle: ""
 description: ""
-godocref: ""
 publishdate: ""
 lastmod: ""
 categories: []
@@ -10,4 +9,4 @@ weight: 00
 slug: ""
 aliases: []
 toc: false
----
\ No newline at end of file
+---
index 0a5dd344f75945ad5798fce352711a42daee1f40..cc9b02b369bf40bdd1f2cda9c8bb5519cb1a6833 100644 (file)
@@ -1,7 +1,6 @@
 ---
 linktitle: ""
 description: ""
-godocref: ""
 publishdate: ""
 lastmod: ""
 categories: [functions]
@@ -14,4 +13,4 @@ aliases: []
 relatedfuncs: []
 toc: false
 deprecated: false
----
\ No newline at end of file
+---
index b4a8e059ac46479abc2b6075751a22937bcf174f..fb68fae23816cb51e527d4823cfb96f9ebf619d1 100644 (file)
@@ -25,3 +25,7 @@ style = "trac"
 lineNumbersInTable = true
 noClasses = false
 
+[tableOfContents]
+endLevel = 2
+ordered = false
+startLevel = 2
\ No newline at end of file
index 43d9e77b7e1c837e244889e569b2a2458c98cf3e..00d60be042b880ca55c39b13f437543bb2c8784a 100644 (file)
@@ -69,6 +69,7 @@ hugo [flags]
 ### SEE ALSO
 
 * [hugo check](/commands/hugo_check/)   - Contains some verification checks
+* [hugo completion](/commands/hugo_completion/)         - generate the autocompletion script for the specified shell
 * [hugo config](/commands/hugo_config/)         - Print the site configuration
 * [hugo convert](/commands/hugo_convert/)       - Convert your content to different formats
 * [hugo deploy](/commands/hugo_deploy/)         - Deploy your site to a Cloud provider.
diff --git a/content/en/commands/hugo_completion.md b/content/en/commands/hugo_completion.md
new file mode 100644 (file)
index 0000000..fdcb008
--- /dev/null
@@ -0,0 +1,48 @@
+---
+title: "hugo completion"
+slug: hugo_completion
+url: /commands/hugo_completion/
+---
+## hugo completion
+
+generate the autocompletion script for the specified shell
+
+### Synopsis
+
+
+Generate the autocompletion script for hugo for the specified shell.
+See each sub-command's help for details on how to use the generated script.
+
+
+### Options
+
+```
+  -h, --help   help for completion
+```
+
+### Options inherited from parent commands
+
+```
+      --config string              config file (default is path/config.yaml|json|toml)
+      --configDir string           config dir (default "config")
+      --debug                      debug output
+  -e, --environment string         build environment
+      --ignoreVendor               ignores any _vendor directory
+      --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
+      --log                        enable Logging
+      --logFile string             log File path (if set, logging enabled automatically)
+      --quiet                      build in quiet mode
+  -s, --source string              filesystem path to read files relative from
+      --themesDir string           filesystem path to themes directory
+  -v, --verbose                    verbose output
+      --verboseLog                 verbose logging
+```
+
+### SEE ALSO
+
+* [hugo](/commands/hugo/)       - hugo builds your site
+* [hugo completion bash](/commands/hugo_completion_bash/)       - generate the autocompletion script for bash
+* [hugo completion fish](/commands/hugo_completion_fish/)       - generate the autocompletion script for fish
+* [hugo completion powershell](/commands/hugo_completion_powershell/)   - generate the autocompletion script for powershell
+* [hugo completion zsh](/commands/hugo_completion_zsh/)         - generate the autocompletion script for zsh
+
diff --git a/content/en/commands/hugo_completion_bash.md b/content/en/commands/hugo_completion_bash.md
new file mode 100644 (file)
index 0000000..5ff7c0a
--- /dev/null
@@ -0,0 +1,62 @@
+---
+title: "hugo completion bash"
+slug: hugo_completion_bash
+url: /commands/hugo_completion_bash/
+---
+## hugo completion bash
+
+generate the autocompletion script for bash
+
+### Synopsis
+
+
+Generate the autocompletion script for the bash shell.
+
+This script depends on the 'bash-completion' package.
+If it is not installed already, you can install it via your OS's package manager.
+
+To load completions in your current shell session:
+$ source <(hugo completion bash)
+
+To load completions for every new session, execute once:
+Linux:
+  $ hugo completion bash > /etc/bash_completion.d/hugo
+MacOS:
+  $ hugo completion bash > /usr/local/etc/bash_completion.d/hugo
+
+You will need to start a new shell for this setup to take effect.
+  
+
+```
+hugo completion bash
+```
+
+### Options
+
+```
+  -h, --help              help for bash
+      --no-descriptions   disable completion descriptions
+```
+
+### Options inherited from parent commands
+
+```
+      --config string              config file (default is path/config.yaml|json|toml)
+      --configDir string           config dir (default "config")
+      --debug                      debug output
+  -e, --environment string         build environment
+      --ignoreVendor               ignores any _vendor directory
+      --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
+      --log                        enable Logging
+      --logFile string             log File path (if set, logging enabled automatically)
+      --quiet                      build in quiet mode
+  -s, --source string              filesystem path to read files relative from
+      --themesDir string           filesystem path to themes directory
+  -v, --verbose                    verbose output
+      --verboseLog                 verbose logging
+```
+
+### SEE ALSO
+
+* [hugo completion](/commands/hugo_completion/)         - generate the autocompletion script for the specified shell
+
diff --git a/content/en/commands/hugo_completion_fish.md b/content/en/commands/hugo_completion_fish.md
new file mode 100644 (file)
index 0000000..aab77bf
--- /dev/null
@@ -0,0 +1,56 @@
+---
+title: "hugo completion fish"
+slug: hugo_completion_fish
+url: /commands/hugo_completion_fish/
+---
+## hugo completion fish
+
+generate the autocompletion script for fish
+
+### Synopsis
+
+
+Generate the autocompletion script for the fish shell.
+
+To load completions in your current shell session:
+$ hugo completion fish | source
+
+To load completions for every new session, execute once:
+$ hugo completion fish > ~/.config/fish/completions/hugo.fish
+
+You will need to start a new shell for this setup to take effect.
+
+
+```
+hugo completion fish [flags]
+```
+
+### Options
+
+```
+  -h, --help              help for fish
+      --no-descriptions   disable completion descriptions
+```
+
+### Options inherited from parent commands
+
+```
+      --config string              config file (default is path/config.yaml|json|toml)
+      --configDir string           config dir (default "config")
+      --debug                      debug output
+  -e, --environment string         build environment
+      --ignoreVendor               ignores any _vendor directory
+      --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
+      --log                        enable Logging
+      --logFile string             log File path (if set, logging enabled automatically)
+      --quiet                      build in quiet mode
+  -s, --source string              filesystem path to read files relative from
+      --themesDir string           filesystem path to themes directory
+  -v, --verbose                    verbose output
+      --verboseLog                 verbose logging
+```
+
+### SEE ALSO
+
+* [hugo completion](/commands/hugo_completion/)         - generate the autocompletion script for the specified shell
+
diff --git a/content/en/commands/hugo_completion_powershell.md b/content/en/commands/hugo_completion_powershell.md
new file mode 100644 (file)
index 0000000..dc8aadc
--- /dev/null
@@ -0,0 +1,54 @@
+---
+title: "hugo completion powershell"
+slug: hugo_completion_powershell
+url: /commands/hugo_completion_powershell/
+---
+## hugo completion powershell
+
+generate the autocompletion script for powershell
+
+### Synopsis
+
+
+Generate the autocompletion script for powershell.
+
+To load completions in your current shell session:
+PS C:\> hugo completion powershell | Out-String | Invoke-Expression
+
+To load completions for every new session, add the output of the above command
+to your powershell profile.
+
+
+```
+hugo completion powershell [flags]
+```
+
+### Options
+
+```
+  -h, --help              help for powershell
+      --no-descriptions   disable completion descriptions
+```
+
+### Options inherited from parent commands
+
+```
+      --config string              config file (default is path/config.yaml|json|toml)
+      --configDir string           config dir (default "config")
+      --debug                      debug output
+  -e, --environment string         build environment
+      --ignoreVendor               ignores any _vendor directory
+      --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
+      --log                        enable Logging
+      --logFile string             log File path (if set, logging enabled automatically)
+      --quiet                      build in quiet mode
+  -s, --source string              filesystem path to read files relative from
+      --themesDir string           filesystem path to themes directory
+  -v, --verbose                    verbose output
+      --verboseLog                 verbose logging
+```
+
+### SEE ALSO
+
+* [hugo completion](/commands/hugo_completion/)         - generate the autocompletion script for the specified shell
+
diff --git a/content/en/commands/hugo_completion_zsh.md b/content/en/commands/hugo_completion_zsh.md
new file mode 100644 (file)
index 0000000..b3062b7
--- /dev/null
@@ -0,0 +1,61 @@
+---
+title: "hugo completion zsh"
+slug: hugo_completion_zsh
+url: /commands/hugo_completion_zsh/
+---
+## hugo completion zsh
+
+generate the autocompletion script for zsh
+
+### Synopsis
+
+
+Generate the autocompletion script for the zsh shell.
+
+If shell completion is not already enabled in your environment you will need
+to enable it.  You can execute the following once:
+
+$ echo "autoload -U compinit; compinit" >> ~/.zshrc
+
+To load completions for every new session, execute once:
+# Linux:
+$ hugo completion zsh > "${fpath[1]}/_hugo"
+# macOS:
+$ hugo completion zsh > /usr/local/share/zsh/site-functions/_hugo
+
+You will need to start a new shell for this setup to take effect.
+
+
+```
+hugo completion zsh [flags]
+```
+
+### Options
+
+```
+  -h, --help              help for zsh
+      --no-descriptions   disable completion descriptions
+```
+
+### Options inherited from parent commands
+
+```
+      --config string              config file (default is path/config.yaml|json|toml)
+      --configDir string           config dir (default "config")
+      --debug                      debug output
+  -e, --environment string         build environment
+      --ignoreVendor               ignores any _vendor directory
+      --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
+      --log                        enable Logging
+      --logFile string             log File path (if set, logging enabled automatically)
+      --quiet                      build in quiet mode
+  -s, --source string              filesystem path to read files relative from
+      --themesDir string           filesystem path to themes directory
+  -v, --verbose                    verbose output
+      --verboseLog                 verbose logging
+```
+
+### SEE ALSO
+
+* [hugo completion](/commands/hugo_completion/)         - generate the autocompletion script for the specified shell
+
index b5357cba4f20b6964ea6ad5eab5647b56539b003..bbeb21ada08a41800fc2eeaf3830672108d0b732 100644 (file)
@@ -47,29 +47,27 @@ Disqus has its own [internal template](https://gohugo.io/templates/internal/#dis
 {{ template "_internal/disqus.html" . }}
 ```
 
-## Comments Alternatives
+## Alternatives
 
-There are a few alternatives to commenting on static sites for those who do not want to use Disqus:
+These are some alternatives to Disqus:
 
-* [Staticman](https://staticman.net/)
-* [Talkyard](https://www.talkyard.io/blog-comments) (Open source, & serverless hosting)
+* [Cactus Comments](https://cactus.chat/docs/integrations/hugo/) (Open Source, Matrix appservice, Docker install)
+* [Commento](https://commento.io/) (Open Source, available as a service, local install, or docker image)
+* [Graph Comment](https://graphcomment.com/)
+* [Hyvor Talk](https://talk.hyvor.com/) (Available as a service)
 * [IntenseDebate](https://intensedebate.com/)
-* [Graph Comment][]
+* [Isso](https://posativ.org/isso/) (Self-hosted, Python) ([tutorial][issotutorial])
 * [Muut](https://muut.com/)
-* [Isso](https://posativ.org/isso/) (Self-hosted, Python)
-    * [Tutorial on Implementing Isso with Hugo][issotutorial]
+* [Remark42](https://remark42.com/) (Open source, Golang, Easy to run docker)
+* [Staticman](https://staticman.net/)
+* [Talkyard](https://www.talkyard.io/blog-comments) (Open source, & serverless hosting)
 * [Utterances](https://utteranc.es/) (Open source, GitHub comments widget built on GitHub issues)
-* [Remark](https://github.com/umputun/remark) (Open source, Golang, Easy to run docker)
-* [Commento](https://commento.io/) (Open Source, available as a service, local install, or docker image)
-* [Hyvor Talk](https://talk.hyvor.com/) (Available as a service)
-
 
 [configuration]: /getting-started/configuration/
 [disquspartial]: /templates/partials/#disqus
 [disqussetup]: https://disqus.com/profile/signup/
 [forum]: https://discourse.gohugo.io
 [front matter]: /content-management/front-matter/
-[Graph Comment]: https://graphcomment.com/
 [kaijuissue]: https://github.com/spf13/kaiju/issues/new
 [issotutorial]: https://stiobhart.net/2017-02-24-isso-comments/
 [partials]: /templates/partials/
index 5654be7f0f02657ca9cf79f2c4cae353f2d155cc..1ae20ba583368db0e8845caf0ecd523498e6417a 100644 (file)
@@ -152,7 +152,6 @@ Markdown syntax is simple enough to learn in a single sitting. The following are
 [mmark]: https://github.com/mmarkdown/mmark
 [org]: https://orgmode.org/
 [pandoc]: https://www.pandoc.org/
-[Pygments]: https://pygments.org/
 [rest]: https://docutils.sourceforge.io/rst.html
 [sc]: /content-management/shortcodes/
 [sct]: /templates/shortcode-templates/
index d1b1f20ba4685f19f5d86fd2cdd84f48c8ad4001..0353fb1fe00e4d83a1fe321801854700f3d09094 100644 (file)
@@ -185,7 +185,7 @@ path
 : A [Glob](https://github.com/gobwas/glob) pattern matching the content path below /content. Expects Unix-styled slashes. Note that this is the virtual path, so it starts at the mount root. The matching support double-asterisks so you can match for patterns like `/blog/*/**` to match anything from the third level and down.
 
 kind
-: A Glob pattern matching the Page's Kind(s), e.g. "{home,section}".
+: The Page's Kind, e.g. "section".
 
 lang
 : A Glob pattern matching the Page's language, e.g. "{en,sv}".
index ce3bcd1f5488eed74ff38e73109d0595f823ced5..7d271041b4cf19a0ca42d2d6d32b15564cfd811b 100644 (file)
@@ -2,7 +2,6 @@
 title: Shortcodes
 linktitle:
 description: Shortcodes are simple snippets inside your content files calling built-in or custom templates.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2019-11-07
@@ -435,7 +434,6 @@ To learn more about creating custom shortcodes, see the [shortcode template docu
 [Instagram]: https://www.instagram.com/
 [pagevariables]: /variables/page/
 [partials]: /templates/partials/
-[Pygments]: https://pygments.org/
 [quickstart]: /getting-started/quick-start/
 [sctemps]: /templates/shortcode-templates/
 [scvars]: /variables/shortcodes/
index c0c43cfacd7cb10a8509af351301aeb2a8fbb139..31f12f7d32b6c6a7d8a57c3f8dc2cce74c067d65 100644 (file)
@@ -24,7 +24,7 @@ See [Configure Highlight](/getting-started/configuration-markup#highlight).
 
 ## Generate Syntax Highlighter CSS
 
-If you run with `pygmentsUseClasses=true` in your site config, you need a style sheet.
+If you run with `markup.highlight.noClasses=false` in your site config, you need a style sheet.
 
 You can generate one with Hugo:
 
index 000f478fcc083c3cf302f57117fa6399978c7899..b2450e9b45aa589cc9586db9d65ba5c12ec45618 100644 (file)
@@ -336,7 +336,7 @@ pick 33c8973 Begin workflow
 pick 3502f2e Refactoring and typo fixes
 ```
 
-In the case above we should merge the last to commits in the commit of this tutorial (`Add "How to contribute to Hugo" tutorial`). You can "squash" commits, i.e. merge two or more commits into a single one.
+In the case above we should merge the last two commits in the commit of this tutorial (`Add "How to contribute to Hugo" tutorial`). You can "squash" commits, i.e. merge two or more commits into a single one.
 
 All operations are written before the commit message. Replace "pick" with an operation. In this case `squash` or `s` for short:
 
index 366d1f093707f7454f0d12dd477818b77f164f8a..dda03347ad24466c17b1c34b7b4b873be6c51854 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: .GetPage
 description: "Gets a `Page` of a given `path`."
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index b083e1c341ff4e7ee6abc1ab6dfbc82c06f30bbc..1b77f6a38c0334f0886c36379fbec2bc49212137 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: .RenderString
 description: "Renders markup to HTML."
-godocref:
 date: 2019-12-18
 categories: [functions]
 menu:
index ffebdf6cee14d159f3c17b0a07844267bf4dd002..fa7974685afcea619f82ad4e722fd5c46d1add56 100644 (file)
@@ -2,7 +2,6 @@
 title: Functions Quick Reference
 linktitle: Functions Quick Reference
 description: Comprehensive list of Hugo templating functions, including basic and advanced usage examples.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 418ff50fd312d0f8aeb7752ab8afe3d526c19ff7..d9818fcaf61911a3b09ab1ef6bb475d5f1380ef7 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: absLangURL
 description: Adds the absolute URL with correct language prefix according to site configuration for multilingual.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index a31dbb0b4e1bc4cd41fc1c71fc92b1ec345c66bb..13524d2d6a61e622178e2b1dca3324f3a742c367 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: absURL
 description: Creates an absolute URL based on the configured baseURL.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 5037beb02c8ad871f714840da6e3f965b94a9fac..56008c956a7f29755d0946134c5290908255a4e5 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: .AddDate
 description: Returns the time corresponding to adding the given number of years, months, and days passed to the function.
-godocref: https://golang.org/pkg/time/#Time.AddDate
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 80c0dd2418ccdc9291cd9666fc5800eb3b812b1a..da93b3e446548155c309661234363ff3be408656 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: after
 description: "`after` slices an array to only the items after the <em>N</em>th item."
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index df22732a0461dde9386fb2d31fb33a0b86dec3d9..3a507c7f98e619d2294df6bb0337782f9103bc45 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: apply
 description: Given a map, array, or slice, `apply` returns a new slice with a function applied over it.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 2f0729b85cf9da7ba48d25132da7ed6388b38177..54ca0440c255c35afb11c87779ccdbd637946ebc 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: base64
 description: "`base64Encode` and `base64Decode` let you easily decode content with a base64 encoding and vice versa through pipes."
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 04fd5e4785df6d3c25b73ca7356e02feb9d1c393..c56505c2c5d0e98b376ed45e5a1b09eddc5345a3 100644 (file)
@@ -1,7 +1,7 @@
 ---
 title: chomp
+toc: true
 description: Removes any trailing newline characters.
-godocref: Removes any trailing newline characters.
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index a52829a1c64ad9fe63b4a4a4eb0311d9f0851f4e..0acef095bab3f0a902eac4675a8e4bd2e9b435f8 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: countrunes
 description: Determines the number of runes in a string excluding any whitespace.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 40a7b39e580e90ab4e30caeace0b9bc706a0e347..17f0fa5c25dcdb85548e70a98c8c411aaec3c2da 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: countwords
 description: Counts the number of words in a string.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index d56a91f028c6371f56c02cc62cb3069f366e4b88..362efabd3e727a28b972985b0527ce5a99658c44 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: time.Format
 description: Converts a date/time to a localized string.
-godocref: https://golang.org/pkg/time/
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -23,7 +22,7 @@ deprecated: false
 {{ time.Format "Monday, Jan 2, 2006" "2015-01-21" }} → "Wednesday, Jan 21, 2015"
 ```
 
-Note that since Hugo 0.87.0, `time.Format` will return a localized string for the currrent language. {{< new-in "0.87.0" >}}
+Note that since Hugo 0.87.0, `time.Format` will return a localized string for the current language. {{< new-in "0.87.0" >}}
 
 The `LAYOUT` string can be either:
 
@@ -37,7 +36,7 @@ See the [`time` function](/functions/time/) to convert a timestamp string to a G
 
 {{< new-in "0.87.0" >}}
 
-Go's date layout strings can be hard to reason about, especially with multiple languages. Since Hugo 0.87.0 you can alternatively use some predefined layout idenfifiers that will output localized dates or times:
+Go's date layout strings can be hard to reason about, especially with multiple languages. Since Hugo 0.87.0 you can alternatively use some predefined layout identifiers that will output localized dates or times:
 
 ```go-html-template
 {{ .Date | time.Format ":date_long" }}
index 18f7b7d33bc17632cc13e45fc559caf6c26f293b..eee00b2002ea5f4f74ec05c5076d64b4b7ac804d 100644 (file)
@@ -2,7 +2,6 @@
 title: default
 description: Allows setting a default value that can be returned if a first value is not set.
 qref: "Returns a default value if a value is not set when checked."
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 2d13570f6a386ac7d3951b45980ee4f2196d6628..533af0523520a62312bb014b36c231eb030a31bf 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: delimit
 description: Loops through any array, slice, or map and returns a string of all the values separated by a delimiter.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 68088bae47e553e21128bb75c3bb1acf5e0092bf..6eeb9401875ad5d6ec17b238178447f8cb319f86 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: dict
 description: Creates a dictionary from a list of key and value pairs.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-26
index 47e35f5c73261be4884a02396a411dd49fd0b3b1..515b5c449a02120e51659308f22b75d4a06907f1 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: echoParam
 description: Prints a parameter if it is set.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index ac10f837a5a86385131ac0a8119bc56de8039862..20e30fafa631605dbfe13696e19a327173ec2976 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: emojify
 description: Runs a string through the Emoji emoticons processor.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 77f75db374775a9fb542c1801893f8c554ed1daa..d342a628a49576ce9b2617d5b8b3a267c1c2eda5 100644 (file)
@@ -2,7 +2,6 @@
 title: eq
 linktitle: eq
 description: Returns the boolean truth of arg1 == arg2.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 3d535aacaf6741ca7bbe53903103247fa2f35061..bb84a1c099d764d3c972a4ab712e2ad4f4840921 100644 (file)
@@ -3,7 +3,6 @@ title: "fileExists"
 linktitle: "fileExists"
 date: 2017-08-31T22:38:22+02:00
 description: Checks whether a file exists under the given path.
-godocref:
 publishdate: 2017-08-31T22:38:22+02:00
 lastmod: 2017-08-31T22:38:22+02:00
 categories: [functions]
@@ -26,4 +25,4 @@ aliases: []
 {{- end }}
 ```
 
-In the example above, a banner from the `static` folder should be shown if the given path points to an existing file.
\ No newline at end of file
+In the example above, a banner from the `static` folder should be shown if the given path points to an existing file.
index 653a482fadb011c3c705279fb80809efdea6932a..b6375be9cdb2989104ddeead4bfe1250425d68aa 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: findRE
 description: Returns a list of strings that match the regular expression.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index a0c7ca1462405282e8ae34ee44fc350e4aa0f2d3..98d162617c1c45da0bd997050ab9660e809dafe3 100644 (file)
@@ -2,7 +2,6 @@
 title: first
 linktitle: first
 description: "Slices an array to only the first _N_ elements."
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 2a5f7579c18ea5af6440c9cbb500133fcbfb761a..1c589e31748e2f6b3b6404ece0f7599a2db74174 100644 (file)
@@ -2,7 +2,6 @@
 title: float
 linktitle: float
 description: Creates a `float` from the argument passed into the function.
-godocref:
 date: 2017-09-28
 publishdate: 2017-09-28
 lastmod: 2017-09-28
index b09a77e29f10eda743264c060836a9001a8c712b..199030782e68dfe13ee8ed5d4d79fbdf5011a965 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: .Format
 description: Formats built-in Hugo dates---`.Date`, `.PublishDate`, and `.Lastmod`---according to Go's layout string.
-godocref: https://golang.org/pkg/time/#example_Time_Format
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index ecc2a02233fe0bbb2164d7ce4b89c84af302e61f..c7256c0e30d1cee9c6cdcbe1d6d13d4b7861de82 100644 (file)
@@ -2,7 +2,6 @@
 title: ge
 linktitle: ge
 description: Returns the boolean truth of arg1 >= arg2.
-godocref:
 date: 2017-07-26
 publishdate: 2017-07-26
 lastmod: 2017-07-26
index f6d6a6e312cb134352d4ea118e51cf558ce15e4f..c5b75c7fd5ebcdefdae1c55c707279b6327eb545 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: .Get
 description: Accesses positional and ordered parameters in shortcode declaration.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -29,7 +28,3 @@ When accessing a named parameter that does not exist, `.Get` returns an empty st
 ```
 
 [sc]: /templates/shortcode-templates/
-
-
-
-
index 73569ece50c2d02a4ad70b5f3bde46e40d7bba58..9ada0d031b8598103f8ff82cd07ee53440d93194 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: getenv
 description: Returns the value of an environment variable.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 75b5fff0fa1ef490bd3e71a8fd1b567445e8ec86..91203f89069d907fa984f5e963ecbbb9994620f2 100644 (file)
@@ -2,7 +2,6 @@
 title: gt
 linktitle: gt
 description: Returns the boolean truth of arg1 > arg2.
-godocref:
 date: 2017-07-26
 publishdate: 2017-07-26
 lastmod: 2017-07-26
index 3deac60c3e915794b1306021f4ea94cd04e48e9c..99d5ba8190ec080d71e1a9ad3b0e0a32e4467e2b 100644 (file)
@@ -2,7 +2,6 @@
 title: hasprefix
 linktitle: hasPrefix
 description: Tests whether a string begins with prefix.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index ff1b796ccb8798974b56dd5c8953245be4a49106..1deeb727773c4328ab8eadc9df55246add90b923 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: .HasChildren
 description:
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index c53c91f943bc403f4cbbc8317afa06ce96135c9a..dbd4aa4183a880ada8262c0db862e87135e7f933 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: .HasMenuCurrent
 description:
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 1740742ce60a64278c840819672075b194fb0be1..866d15c343ed4a046f259b2a12995423bc508712 100644 (file)
@@ -2,7 +2,6 @@
 title: highlight
 linktitle: highlight
 description: Takes a string of code and language declaration and uses Chroma to return syntax-highlighted HTML.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -22,5 +21,3 @@ deprecated: false
 
 
 [highlight]: /content-management/shortcodes/#highlight
-[installpygments]: /getting-started/installing/#installing-pygments-optional
-[syntax]: /content-management/syntax-highlighting/
index 02343196b03198f2a5d42fa2458ca3f577e2c470..9df36d30011cd6578c93ca8974d9c1db2e128427 100644 (file)
@@ -2,7 +2,6 @@
 title: hmac
 linktitle: hmac
 description: Compute the cryptographic checksum of a message.
-godocref:
 date: 2020-05-29
 publishdate: 2020-05-29
 lastmod: 2020-05-29
index 00ab18c74d7f9a8a500ce0200462fb3642885b24..652492c72d3696baf85763517e7fcc1b669e8f40 100644 (file)
@@ -2,7 +2,6 @@
 title: htmlEscape
 linktitle:
 description: Returns the given string with the reserved HTML codes escaped.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 71db952497a8f5fd421af0a60194e715c866e2f3..9533fde90e435d8dfe5a188b82f88d3e6c5f8cfa 100644 (file)
@@ -2,7 +2,6 @@
 title: htmlUnescape
 linktitle: htmlUnescape
 description: Returns the given string with HTML escape codes un-escaped.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 78f5018c406097dbbce8325503ececfc6da52ef7..6cbb36019caafa4e089cf5ac359b630f0cd505d9 100644 (file)
@@ -2,7 +2,6 @@
 title: hugo
 linktitle: hugo
 description: The `hugo` function provides easy access to Hugo-related data.
-godocref:
 date: 2019-01-31
 publishdate: 2019-01-31
 lastmod: 2019-01-31
@@ -50,4 +49,3 @@ hugo.IsProduction
 {{% note "Use the Hugo Generator Tag" %}}
 We highly recommend using `hugo.Generator` in your website's `<head>`. `hugo.Generator` is included by default in all themes hosted on [themes.gohugo.io](https://themes.gohugo.io). The generator tag allows the Hugo team to track the usage and popularity of Hugo.
 {{% /note %}}
-
index fe06de3a7538fb024cb85ce24852726a0d4a3377..18a0875911ed5ee40ce87e37d007071016851c2b 100644 (file)
@@ -2,7 +2,6 @@
 title: humanize
 linktitle:
 description: Returns the humanized version of an argument with the first letter capitalized.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index c4b89c322dabe065f50b7c667b23357735c763a1..7d88292b947549029ab0a0941986501aa538884f 100644 (file)
@@ -2,7 +2,6 @@
 title: i18n
 linktitle: i18n
 description: Translates a piece of content based on your i18n configuration files.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index e61a10916b10bdd204f37858c82b4850d4e7af7f..5553aee92c805ede75a14046c1a6f665c99ec88d 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: Image Functions
 description: The images namespace provides a list of filters and other image related functions.
-godocref:
 date: 2017-02-01
 categories: [functions]
 aliases: [/functions/imageconfig/]
index d3a27bc87b66a7884689f1208626d561281833a1..7a8cb33eb901cd3c781628fa2b0f352cd5dbdf13 100644 (file)
@@ -2,7 +2,6 @@
 title: in
 linktitle:
 description: Checks if an element is in an array or slice--or a substring in a string---and returns a boolean.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index eb3d6fd2cd8d41916dbb9cecfd51b85c6068816f..6ee46b4a8ba6bf70a655b3cfac4e8f4120fcd9a3 100644 (file)
@@ -2,7 +2,6 @@
 title: index
 linktitle: index
 description: Looks up the index(es) or key(s) of the data structure passed into it.
-godocref: https://golang.org/pkg/text/template/#hdr-Functions
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -38,6 +37,14 @@ The function takes multiple indices as arguments, and this can be used to get ne
 {{ index $map "c" "e" }} => 20
 ```
 
+You may write multiple indices as a slice:
+
+```go-text-template
+{{ $map := dict "a" 100 "b" 200 "c" (dict "d" 10 "e" 20) }}
+{{ $slice := slice "c" "e" }}
+{{ index $map $slice }} => 20
+```
+
 ## Example: Load Data from a Path Based on Front Matter Params
 
 Assume you want to add a `location = ""` field to your front matter for every article written in `content/vacations/`. You want to use this field to populate information about the location at the bottom of the article in your `single.html` template. You also have a directory in `data/locations/` that looks like the following:
index f5416c1dc9d660102feb0f79e545fbd5c3853b30..24818cef676fc444191d0ff59136dc2bdb7b6580 100644 (file)
@@ -2,7 +2,6 @@
 title: int
 linktitle: int
 description: Creates an `int` from the argument passed into the function.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 00447953188e38a419e325aada3048d52b1dd4dd..2fe73ded80d5bfa0b0674cdef9daa9dfee1c9ae9 100644 (file)
@@ -2,7 +2,6 @@
 title: intersect
 linktitle: intersect
 description: Returns the common elements of two arrays or slices, in the same order as the first array.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 66c7197a29a3d918762fb5dae315c72d7f6e6c99..51c21721b9fb2840e6b5c5683afff0000f5b96f7 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: .IsMenuCurrent
 description:
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index d6aa2b59706520280735eb0e5d846974b8f85f41..aa36f6dac60b4d5ec92d9b0408df8f21d0596906 100644 (file)
@@ -2,7 +2,6 @@
 title: isset
 linktitle: isset
 description: Returns true if the parameter is set.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -29,4 +28,3 @@ Takes either a slice, array, or channel and an index or a map and a key as input
 All site-level configuration keys are stored as lower case. Therefore, a `myParam` key-value set in your [site configuration file](/getting-started/configuration/) needs to be accessed with `{{if isset .Site.Params "myparam"}}` and *not* with `{{if isset .Site.Params "myParam"}}`. Note that you can still access the same config key with `.Site.Params.myParam` *or* `.Site.Params.myparam`, for example, when using [`with`](/functions/with).
 This restriction also applies when accessing page-level front matter keys from within [shortcodes](/content-management/shortcodes/).
 {{% /warning %}}
-
index a6028fcda0f4209b1fbb70ca9a4c7038a0dfaaf5..28b90534c30308c4ca15260ad8d2f3efc200cf18 100644 (file)
@@ -2,7 +2,6 @@
 title: jsonify
 linktitle: jsonify
 description: Encodes a given object to JSON.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2020-04-13
index a80362877583bffeaec062bb8033e07d8d34e43c..78d658442094a13c52bb817fda3be12eed733966 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: lang.Merge
 description: "Merge missing translations from other languages."
-godocref: ""
 date: 2018-03-16
 categories: [functions]
 keywords: [multilingual]
index 7b810c9bebe460209182cf63abc40f26dce8bc7d..1a4da807ace9372cc4800e87b1a8850e13320862 100644 (file)
@@ -8,23 +8,9 @@ keywords: [numbers]
 menu:
   docs:
     parent: "functions"
-toc: false
 signature: ["lang.NumFmt PRECISION NUMBER [OPTIONS [DELIMITER]]"]
 aliases: ['/functions/numfmt/']
 type: 'template-func'
----
-
-The default options value is `- . ,`.  The default delimiter within the options
-value is a space.  If you need to use a space as one of the options, set a
-custom delimiter.s
 
-Numbers greater than or equal to 5 are rounded up. For example, if precision is set to `0`, `1.5` becomes `2`, and `1.4` becomes `1`.
+---
 
-```
-{{ lang.NumFmt 2 12345.6789 }} → 12,345.68
-{{ lang.NumFmt 2 12345.6789 "- , ." }} → 12.345,68
-{{ lang.NumFmt 0 -12345.6789 "- . ," }} → -12,346
-{{ lang.NumFmt 6 -12345.6789 "- ." }} → -12345.678900
-{{ lang.NumFmt 6 -12345.6789 "-|.| " "|" }} → -1 2345.678900
-{{ -98765.4321 | lang.NumFmt 2 }} → -98,765.43
-```
index bf65a8a6d5e0f3e55257db46e091605236688a40..4a752cb826e3832d3c5bff5bf44d19aab40061db 100644 (file)
@@ -2,7 +2,6 @@
 title: last
 linktitle: last
 description: "slices an array to only the last <em>N</em>th elements."
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 054937f080f1bfd123946af0fc1928fd955386fd..1ff0ac582a47b7837048b345f785b5ac8884a2cd 100644 (file)
@@ -2,7 +2,6 @@
 title: le
 linktitle: le
 description: Returns the boolean truth of arg1 <= arg2.
-godocref:
 date: 2017-07-26
 publishdate: 2017-07-26
 lastmod: 2017-07-26
index 662b24c167bd8255c34dbd855fa229079e6d8876..0681583dbb1d36fa19c0276aa971f22c0d41a517 100644 (file)
@@ -2,7 +2,6 @@
 title: len
 linktitle: len
 description: Returns the length of a variable according to its type.
-godocref: https://golang.org/pkg/builtin/#len
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-04-18
index a42081b681d1ad02b3dba133ec87fa2ec09d99a2..0e8ba6c6da8824ee288ef9670faeebc1c937fcbf 100644 (file)
@@ -2,7 +2,6 @@
 title: lower
 linktitle: lower
 description: Converts all characters in the provided string to lowercase.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 288d59446b568280954e8ab5d07ca357dafdec60..d2a234986af9e4978478c550a6c6d44f14276352 100644 (file)
@@ -2,7 +2,6 @@
 title: lt
 linktitle: lt
 description: Returns the boolean truth of arg1 < arg2.
-godocref:
 date: 2017-07-26
 publishdate: 2017-07-26
 lastmod: 2017-07-26
index 5baf1db5777918b9cab23b1642e28c07a823e4df..171c3bf107278ede5fd53a6ff9060ca50f3fd190 100644 (file)
@@ -2,7 +2,6 @@
 title: markdownify
 linktitle: markdownify
 description: Runs the provided string through the Markdown processor.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -27,4 +26,4 @@ aliases: []
 *Note*: if you need [Render Hooks][], which `markdownify` doesn't currently
 support, use [.RenderString](/functions/renderstring/) instead.
 
-[Render Hooks]: /getting-started/configuration-markup/#markdown-render-hooks
\ No newline at end of file
+[Render Hooks]: /getting-started/configuration-markup/#markdown-render-hooks
index 99b8cf34f8c9d740d97bb80fee3088de17d7daeb..2d98c4debd4a3892c55a51dabe9f45b717d0b063 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: Math
 description: Hugo provides mathematical operators in templates.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2020-02-23
index dfe76aa030662ae7b643f4f690da958fabea8386..7db856a75b3747778135de40177d3325f90d2aaa 100644 (file)
@@ -2,7 +2,6 @@
 title: md5
 linktitle: md5
 description: hashes the given input and returns its MD5 checksum.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index b672d730c46a2f3f38bab24f7d3392262338714c..e072993d23f0f96968e0c9832aad14c2aedd0b47 100644 (file)
@@ -2,7 +2,6 @@
 title: ne
 linktitle: ne
 description: Returns the boolean truth of arg1 != arg2.
-godocref:
 date: 2017-07-26
 publishdate: 2017-07-26
 lastmod: 2017-07-26
index ae8213d0541c14b35f01d8d53a1083a5cef7e6c0..24e1ab3f713257d010df831935fe096c435d30a8 100644 (file)
@@ -2,7 +2,6 @@
 title: now
 linktitle: now
 description: Returns the current local time 
-godocref: https://godoc.org/time#Time
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-04-30
index 1e878d8962a89a210a4b146ea8086a1a5973851b..8e4e79b01a90428f0ec3651afcafc6d98e4d429d 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: os.Stat
 description: Gets a file information of a given path.
-godocref:
 date: 2018-08-07
 publishdate: 2018-08-07
 lastmod: 2018-08-07
index 6e81bb0251c7c8411966f7aba45af3ab291c252f..eb0a87279a927eb154a4215a7d423745464f7cac 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: .Param
 description: Calls page or site variables into your template.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-04-30
index 48ef059d98e48988cacd249cedeb74371efb79f7..d7a70ac640e06de5eb09e31f0466ecf89b26a683 100644 (file)
@@ -2,7 +2,6 @@
 title: partialCached
 linktitle: partialCached
 description: Allows for caching of partials that do not need to be re-rendered on every invocation.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 87eb67355f68f2e56d1af2940ab08c98c54374f5..c44518a727b30ea6fa4ed8bcebf6903e0b007f1e 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: path.Base
 description: Base returns the last element of a path.
-godocref:
 date: 2018-11-28
 publishdate: 2018-11-28
 lastmod: 2018-11-28
index 54a3fb8be833c10c1bb19945ac17fa397e2dcc30..851a3dc837580237056c4c15c36d57f8a0388738 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: path.Dir
 description: Dir returns all but the last element of a path.
-godocref:
 date: 2018-11-28
 publishdate: 2018-11-28
 lastmod: 2018-11-28
index a36b006f323f82d022d212a79349593e0e62cc2b..73db7ab38862fda1ae997a9228203441e0b40afb 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: path.Ext
 description: Ext returns the file name extension of a path.
-godocref:
 date: 2018-11-28
 publishdate: 2018-11-28
 lastmod: 2018-11-28
index 06a8121f0e027667f3585d3e3540321bdf99646e..96ce863226486cab434d464d0c5e7abd6e4f801d 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: path.Join
 description: Join path elements into a single path.
-godocref:
 date: 2018-11-28
 publishdate: 2018-11-28
 lastmod: 2018-11-28
index c9c32ac5604983c6f0bd04c95fc42f87209977e8..9a09fbe4ab1e6fe6fd2d56be6ddabe9925f06421 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: path.Split
 description: Split path immediately following the final slash.
-godocref:
 date: 2018-11-28
 publishdate: 2018-11-28
 lastmod: 2018-11-28
index 88d1a759a0433d73835f9c9c9c45a2428022113c..1258c139a03fead131c5362c3c5c92e7b23eec2c 100644 (file)
@@ -2,7 +2,6 @@
 title: plainify
 linktitle: plainify
 description: Strips any HTML and returns the plain text version of the provided string.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-04-30
index 49ce39344d699e8e06c7dc1eebee776ef873de2a..9c50409343c15ea2368c717294229b4c4613e86b 100644 (file)
@@ -2,7 +2,6 @@
 title: pluralize
 linktitle: pluralize
 description: Pluralizes the given word according to a set of common English pluralization rules
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -22,4 +21,3 @@ aliases: []
 ```
 {{ "cat" | pluralize }} → "cats"
 ```
-
index d04a6ee17774e6682774afbcaec39dc29b6cc181..42b8dcb759ecc271d43d64e368782ee92e3c58cd 100644 (file)
@@ -2,7 +2,6 @@
 title: print
 linktitle: print
 description: Prints the default representation of the given arguments using the standard `fmt.Print` function.
-godocref: https://golang.org/pkg/fmt/
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index dabb97c05accca7c56581ae75f8fb2df71d6a51f..8b12b988317363590ea3af1447a080c751e88969 100644 (file)
@@ -2,7 +2,6 @@
 title: printf
 linktitle: printf
 description: Formats a string using the standard `fmt.Sprintf` function.
-godocref: https://golang.org/pkg/fmt/
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 36dbfaed6321f63cea4ef8f9a3899c490794de5b..1ea70cbad9e1bb04ab840cff775f92b5f78fa129 100644 (file)
@@ -2,7 +2,6 @@
 title: println
 linktitle: println
 description: Prints the default representation of the given argument using the standard `fmt.Print` function and enforces a linebreak.
-godocref: https://golang.org/pkg/fmt/
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 7c361f3260fe60efaa27fee566ba02507c1df05f..9e8c4b83f9eb140f4f79f1af6f188c702331d729 100644 (file)
@@ -10,7 +10,6 @@ menu:
   docs:
     parent: "functions"
 keywords: [urls]
-godocref:
 signature: ["querify KEY VALUE [KEY VALUE]...", "querify COLLECTION"]
 hugoversion:
 deprecated: false
index 26f636d4d5861393b0291bf953264e6ac62d1d28..599e2ad25bebde6d79fd0f98d2c6f33c3c9d4abd 100644 (file)
@@ -2,7 +2,6 @@
 title: range
 linktitle:
 description: Iterates over a map, array, or slice.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 21f6266925278bd4ff699ce512658a13b6d02269..a70e1f8bc460eca5bd0d3c4bdd38568d0228ae6e 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: readDir
 description: Gets a directory listing from a directory relative to the current working directory.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -27,4 +26,3 @@ If your current project working directory has a single file named `README.txt`:
 For more information on using `readDir` and `readFile` in your templates, see [Local File Templates][local].
 
 [local]: /templates/files/
-
index bcd845c96413854cb5ba31ac250f078db94bb354..f89ac02d9f6828aed25b60d021b43b2cf843911c 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: readFile
 description: Reads a file from disk relative to the current project working directory and returns a string.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-04-30
index 0ec249c6161d4215aec844153a703d34665f5884..ade38042008c731dd2212d00bc50bec84bdc29f2 100644 (file)
@@ -2,7 +2,6 @@
 title: ref
 linktitle: ref
 description: Returns the absolute permalink to a page.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2020-09-05
index d75b842b4c7b7a379b35eeef09692ae6f58d86e4..9ad50b599477b8efd525e84ba4d6d1fd322b105b 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: reflect.IsMap
 description: Reports if a value is a map.
-godocref:
 date: 2018-11-28
 publishdate: 2018-11-28
 lastmod: 2018-11-28
index 27d6aea219cc50f33fd7fc771edade88dcffe20f..38640918a5a81ec7c377eb4add01e1d478c54dee 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: reflect.IsSlice
 description: Reports if a value is a slice.
-godocref:
 date: 2018-11-28
 publishdate: 2018-11-28
 lastmod: 2018-11-28
index 7b70c1117f3ecf0638f7daff84006f274be97c59..e624aa355111b2365ba741c5f5bfda78524968ca 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: relLangURL
 description: Adds the relative URL with correct language prefix according to site configuration for multilingual.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 18f65f1f80484ad5f1e13acb9689b91d7d0b389d..dbac2f3dba0c600784e509049c8071c2795971a9 100644 (file)
@@ -2,7 +2,6 @@
 title: relref
 linktitle: relref
 description: Returns the relative permalink to a page.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2020-09-05
index 54e0d441ddaf196b39bad8d3cecac71edc904bb8..71eefb0136ba22219c60d8d1fb7ad696bf39465c 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: relURL
 description: Creates a baseURL-relative URL.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index e3909bde36777687f688961dfb5f50527bf45dc8..c2347091fd30ad54ab2c500d0dbd2adf8fa3902f 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: .Render
 description: Takes a view to apply when rendering content.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index f1f43d11294f8bb34fa86a2c04aa484bfffeebcf..07b83d0351e613325cf0350d547834a53b13acdc 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: replace
 description: Replaces all occurrences of the search string with the replacement string.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2020-09-07
@@ -27,4 +26,3 @@ The number of replacements can be limited with an optional `LIMIT` parameter.
 
 {{ replace "aabbaabb" "a" "z" 2 }} → "zzbbaabb"
 ```
-
index f131169bebff15c39d8b6146af5791e7727cdc9a..a2149b6d3a5f3dca37ee14ac6ab258221ddd4b67 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: replaceRE
 description: Replaces all occurrences of a regular expression with the replacement pattern.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2020-09-07
index 11c10923b60270260ec6842efc31d562229de23d..835ad3065191866cfcdb0213869ce45c41389dff 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: safeCSS
 description: Declares the provided string as a known "safe" CSS string.
-godocref: https://golang.org/src/html/template/content.go?s=919:929#L15
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-26
@@ -33,4 +32,3 @@ Example: Given `style = "color: red;"` defined in the front matter of your `.md`
 {{% note "ZgotmplZ" %}}
 "ZgotmplZ" is a special value that indicates that unsafe content reached a CSS or URL context.
 {{% /note %}}
-
index 9569262190bdd5f2f82fb4d44ff70d9acd78b42e..3d5197a4fd933ca93af61c020c5e4226c5a627a2 100644 (file)
@@ -2,7 +2,6 @@
 title: safeHTML
 # linktitle:
 description: Declares a provided string as a "safe" HTML document to avoid escaping by Go templates.
-godocref: https://golang.org/src/html/template/content.go?s=1374:1385#L25
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 1e1aa620f009df915a4b2862c467b1a125b353d2..19de2e98561f3f8c9582cc758601f1719e2e323b 100644 (file)
@@ -2,7 +2,6 @@
 title: safeHTMLAttr
 # linktitle: safeHTMLAttr
 description: Declares the provided string as a safe HTML attribute.
-godocref: https://golang.org/src/html/template/content.go?s=1661:1676#L33
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -29,4 +28,3 @@ Example: Given a site-wide `config.toml` that contains this menu entry:
 
 * <span class="bad">`<a href="{{ .URL }}">` &rarr; `<a href="#ZgotmplZ">`</span>
 * <span class="good">`<a {{ printf "href=%q" .URL | safeHTMLAttr }}>` &rarr; `<a href="irc://irc.freenode.net/#golang">`</span>
-
index e614e48bff49fa28bf8f7e2ee8c19fd191124102..c67bfa61ccf516d94aa19bdb4a1d8e1ef589192b 100644 (file)
@@ -2,7 +2,6 @@
 title: safeJS
 # linktitle:
 description: Declares the provided string as a known safe JavaScript string.
-godocref: https://golang.org/src/html/template/content.go?s=2548:2557#L51
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -28,4 +27,3 @@ Example: Given `hash = "619c16f"` defined in the front matter of your `.md` file
 
 * <span class="good">`<script>var form_{{ .Params.hash | safeJS }};…</script>` &rarr; `<script>var form_619c16f;…</script>`</span>
 * <span class="bad">`<script>var form_{{ .Params.hash }};…</script>` &rarr; `<script>var form_"619c16f";…</script>`</span>
-
index c132ddf0533142d9019fe161ac1451b9b5009e4c..9590762467905ac70bc1a72c3a09020609cdeb51 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: safeURL
 description: Declares the provided string as a safe URL or URL substring.
-godocref: https://golang.org/pkg/html/template/#HTMLEscape
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 5b155aff94081cd1f263a79daa05f818f8398219..c64aa1119e973fd7d6803a183a5bde96be0e47e5 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: .Scratch
 description: Acts as a "scratchpad" to store and manipulate data.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -43,7 +42,7 @@ Since Hugo 0.43, there are two different ways of using Scratch:
 
 #### The local `newScratch`
 
-{{< new-in "0.43.0" >}} A Scratch instance can also be assigned to any variable using the `newScratch` function. In this case, no Page or Shortcode context is required and the scope of the scratch is only local. The methods detailed below are available from the variable the Scratch instance was assigned to.
+{{< new-in "0.43" >}} A Scratch instance can also be assigned to any variable using the `newScratch` function. In this case, no Page or Shortcode context is required and the scope of the scratch is only local. The methods detailed below are available from the variable the Scratch instance was assigned to.
 
 ```go-html-template
 {{ $data := newScratch }}
@@ -139,7 +138,7 @@ Return an array of values from `key` sorted by `mapKey`.
 
 #### .Delete
 
-{{< new-in "0.38.0" >}} Remove the given key.
+{{< new-in "0.38" >}} Remove the given key.
 
 ```go-html-template
 {{ $scratch.Set "greeting" "Hello" }}
index 678a4c8546cd60d200647df9f8adc32b03eee2ca..c0750b4a1bbb59f1730e4551a7b543ff56d7675f 100644 (file)
@@ -2,7 +2,6 @@
 title: seq
 # linktitle:
 description: Creates a sequence of integers.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index d10da3446dc00c93ac23bc2bd6dc523d73ce60cf..24ad165a87e7cf440439da56d98eea04dbdcc046 100644 (file)
@@ -2,7 +2,6 @@
 title: sha
 # linktitle: sha
 description: Hashes the given input and returns either an SHA1 or SHA256 checksum.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 9945ba752a9ef1166697504d85a1a023e3faf31b..95a586e44d7c4d46a2c0b6cfaf692739cba0fc9b 100644 (file)
@@ -2,7 +2,6 @@
 title: shuffle
 # linktitle:
 description: Returns a random permutation of a given array or slice.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-04-30
index 885eae23dc4cd6732207635629baac46e5e71dcf..8ca46d4330c07e5f345e9c9f3d0df637b8aacfb7 100644 (file)
@@ -2,7 +2,6 @@
 title: singularize
 # linktitle: singularize
 description: Converts a word according to a set of common English singularization rules.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -22,4 +21,3 @@ aliases: []
 `{{ "cats" | singularize }}` → "cat"
 
 See also the `.Data.Singular` [taxonomy variable](/variables/taxonomy/) for singularizing taxonomy names.
-
index 5a112930ffcf01e08867650e611cc41350674e95..d4b8e417ce4a67624903da08773297c48d8d313a 100644 (file)
@@ -2,7 +2,6 @@
 title: site
 linktitle: site
 description: The `site` function provides global access to the same data as the `.Site` page method.
-godocref:
 date: 2021-02-11
 publishdate: 2021-02-11
 lastmod: 2021-02-11
@@ -22,5 +21,3 @@ aliases: []
 ---
 
 `site` is a global function which returns the same data as the `.Site` page method. See: [Site Variables]({{< relref "/variables/site" >}}).
-
-
index c8847c0c2715898b8034d494ee9ef5267e5220ae..0710d5e402d1c310b30e569afb0aa32343170f56 100644 (file)
@@ -2,7 +2,6 @@
 title: slice
 # linktitle: slice
 description: Creates a slice (array) of all passed arguments.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 3d245de3d934e958b4b755b089bc14998f2d5b2f..254ad9a6180b4caaa3e99acaae5266a0950fe0c7 100644 (file)
@@ -2,7 +2,6 @@
 title: slicestr
 # linktitle:
 description: Creates a slice of a half-open range, including start and end indices.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -24,4 +23,3 @@ The `end` index can be omitted; it defaults to the string's length.
 
 * `{{slicestr "BatMan" 3}}` → "Man"
 * `{{slicestr "BatMan" 0 3}}` → "Bat"
-
index ca28f3ee3c76a73b72e79a978fc46e7d6954eeb1..b48aad1aaf2b1bc2378e1e3fdc703ee07796ed06 100644 (file)
@@ -2,7 +2,6 @@
 title: sort
 # linktitle: sort
 description: Sorts maps, arrays, and slices and returns a sorted slice.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -62,4 +61,3 @@ Authors: {{ range sort .Site.Params.authors "lastName" "desc" }}{{ .lastName }}
 
 → Outputs Authors: Perkins Linsley Bergevin
 ```
-
index c42f8eb9dde543459b31b99a9d947f2b617b930e..a66a7cf0c5bfff59478cc18b65b620a810682e95 100644 (file)
@@ -2,7 +2,6 @@
 title: split
 # linktitle: split
 description: splits a string into substrings separated by a delimiter
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -20,5 +19,3 @@ aliases: []
 ---
 
 * `{{split "tag1,tag2,tag3" "," }}` → ["tag1" "tag2" "tag3"]
-
-
index d1e1962deb9cf66e1ccc2ac563635e93622a18b8..33a781e45f42b59bfc58ad06841ed70cee8d2e72 100644 (file)
@@ -2,7 +2,6 @@
 title: string
 # linktitle: string
 description: Creates a string from the argument passed to the function
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -20,4 +19,3 @@ aliases: []
 ---
 
 * `{{string "BatMan"}}` → "BatMan"
-
index 3971c7da189e921850909022737b386e46ce6f0d..40f7043b6323dcdb58c4aee82ebb57c92e63b64c 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: strings.Count
 description: Returns the number of non-overlapping instances of a substring within a string.
-godocref:
 date: 2020-09-07
 publishdate: 2020-09-07
 lastmod: 2020-09-07
index 347e249da00bb7c941d93b39f42dad7bdb995b82..3b82ea055ed4b9ee1ad9563897923258f6a2f7f8 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: strings.HasSuffix
 description: Determine whether or not a given string ends with the provided trailing suffix string.
-godocref:
 date: 2019-08-13
 publishdate: 2019-08-13
 lastmod: 2019-08-13
index 3ad4626fb160428fdeb187f7db94e9ae1335704e..7cba6d075d9cd582926d4678dc6d7829ad230700 100644 (file)
@@ -2,7 +2,6 @@
 title: strings.Repeat
 # linktitle:
 description: Returns INPUT repeated COUNT times.
-godocref:
 date: 2018-05-31
 publishdate: 2018-05-31
 lastmod: 2018-05-31
index 63012ab391bd07197f5ce4e62464a02be7e105fc..de335f8623d2f4a4b9d76679441b131f1b48d02a 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: strings.RuneCount
 description: Determines the number of runes in a string.
-godocref:
 date: 2018-06-01
 publishdate: 2018-06-01
 lastmod: 2018-06-01
@@ -25,4 +24,4 @@ In contrast with `strings.CountRunes` function, which strips HTML and whitespace
 <!-- outputs a content length of 9 runes. -->
 ```
 
-[`utf8.RuneCount`]: https://golang.org/pkg/unicode/utf8/#RuneCount
\ No newline at end of file
+[`utf8.RuneCount`]: https://golang.org/pkg/unicode/utf8/#RuneCount
index 6bbd62cf591770e62118884cbef9aaad2d732cf7..2d71a136775e9f3be45f141ede27cd80c1222e54 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: strings.TrimLeft
 description: Returns a slice of a given string with all leading characters contained in the cutset removed.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index eeeecf76e831532dc7b3e104bf35acdb6102382c..a66bbe3dbceeb5e78fb84ab4a257bba1732dee55 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: strings.TrimPrefix
 description: Returns a given string s without the provided leading prefix string. If s doesn't start with prefix, s is returned unchanged.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -22,4 +21,4 @@ Given the string `"aabbaa"`, the specified prefix is only removed if `"aabbaa"`
 
     {{ strings.TrimPrefix "a" "aabbaa" }} → "abbaa"
     {{ strings.TrimPrefix "aa" "aabbaa" }} → "bbaa"
-    {{ strings.TrimPrefix "aaa" "aabbaa" }} → "aabbaa"
\ No newline at end of file
+    {{ strings.TrimPrefix "aaa" "aabbaa" }} → "aabbaa"
index 2c60402183cffcb260d0030e81629edcd0b93145..05084a4c0a0ce3c6356ed4a6ff090aba77d06b4a 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: strings.TrimRight
 description: Returns a slice of a given string with all trailing characters contained in the cutset removed.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -25,4 +24,3 @@ Given the string `"abba"`, trailing `"a"`'s can be removed a follows:
 Numbers can be handled as well:
 
     {{ strings.TrimRight 12 1221341221 }} → "122134"
-
index 208e0968d4f32970d6a491ad9c1b32f378b10e69..916038054ca4290e495ba405d82a20f6efda50ab 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: strings.TrimSuffix
 description: Returns a given string s without the provided trailing suffix string. If s doesn't end with suffix, s is returned unchanged.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -22,4 +21,4 @@ Given the string `"aabbaa"`, the specified suffix is only removed if `"aabbaa"`
 
     {{ strings.TrimSuffix "a" "aabbaa" }} → "aabba"
     {{ strings.TrimSuffix "aa" "aabbaa" }} → "aabb"
-    {{ strings.TrimSuffix "aaa" "aabbaa" }} → "aabbaa"
\ No newline at end of file
+    {{ strings.TrimSuffix "aaa" "aabbaa" }} → "aabbaa"
index c02141ab230d3f2535062dfd89d51c5e8510b80c..d0fdfe26d249a7474b44b853985f53fc8670c082 100644 (file)
@@ -2,7 +2,6 @@
 title: substr
 # linktitle:
 description: Extracts parts of a string from a specified character's position and returns the specified number of characters.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 08ed37893c5b14ac6e8091b6ee2d2fefb835e851..36fa0ea60901e6b3ec12183dfaef0764ad321a27 100644 (file)
@@ -2,7 +2,6 @@
 title: templates.Exists
 linktitle: ""
 description: "Checks whether a template file exists under the given path relative to the `layouts` directory."
-godocref: ""
 date: 2018-11-01
 publishdate: 2018-11-01
 lastmod: 2018-11-01
index e1f24a40b64063a2fc329ff80ec9e4ce6118c1f0..681c85fd96d6b3cd82d3e72b64614cc7c28d734f 100644 (file)
@@ -2,7 +2,6 @@
 title: time
 linktitle:
 description: Converts a timestamp string into a `time.Time` structure.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index da4054bbd8db88f79457366a40664f5495f23886..201e4c14060a2a93a94d6bf08d2da94b466223ee 100644 (file)
@@ -2,7 +2,6 @@
 title: title
 # linktitle:
 description: Converts all characters in the provided string to title case.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 81ed05c604310f4fc225c88fe9f46c00b7e8a686..7945ffef99740d0c470c24632182fc0b36cd968a 100644 (file)
@@ -2,7 +2,6 @@
 title: trim
 # linktitle:
 description: Returns a slice of a passed string with all leading and trailing characters from cutset removed.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 0336853c1c161fe04e1966b2255e491d247ec7e1..8d0dd36b1daa4c3651741b460580904f6edf97f9 100644 (file)
@@ -2,7 +2,6 @@
 title: truncate
 # linktitle: truncate
 description: Truncates a text to a max length without cutting words or leaving unclosed HTML tags.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index db3c1428301ee8f23d78007e62bf033b713c9004..bf2a302d4da3164f56263f7ef72ed6d3ffe907d6 100644 (file)
@@ -2,7 +2,6 @@
 title: union
 # linktitle: union
 description: Given two arrays or slices, returns a new array that contains the elements or objects that belong to either or both arrays/slices.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-03-12
index 9692b247ef2af2b28e1109d03a024e32e4bf003d..0a720f88fd62ad962d59fa59b541dba52ae4b8b8 100644 (file)
@@ -2,7 +2,6 @@
 title: uniq
 linktitle: uniq
 description: Takes in a slice or array and returns a slice with subsequent duplicate elements removed.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -25,7 +24,3 @@ needsexamples: false
 {{ slice 1 2 3 2 | uniq }}
 <!-- both return [1 2 3] -->
 ```
-
-
-
-
index 49a120e3d3cb763c1581c5b0fc2551587616479b..eaf23c564bfdea9b1af2cdc8b71801ec2e85f558 100644 (file)
@@ -2,7 +2,6 @@
 title: .Unix
 draft: false
 description: .Unix returns the local Time corresponding to the given Unix time, sec seconds and nsec nanoseconds since January 1, 1970 UTC.
-godocref: https://golang.org/search?q=Unix#Functions
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 2d75b37bd718d406c3a7a041d2566db534eea25a..0762541dddabe22cfcef39a48eebcc7b796235f4 100644 (file)
@@ -2,7 +2,6 @@
 title: upper
 # linktitle: upper
 description: Converts all characters in a string to uppercase
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
@@ -27,4 +26,3 @@ Note that `upper` can be applied in your templates in more than one way:
 {{ upper "BatMan" }} → "BATMAN"
 {{ "BatMan" | upper }} → "BATMAN"
 ```
-
index 0742dd0293f78df352cb6472a945626904cc639a..82a88b9d7dedeab34604933e49b80af1c01a1f6a 100644 (file)
@@ -10,7 +10,6 @@ menu:
   docs:
     parent: "functions"
 keywords: [urls,strings]
-godocref:
 signature: ["urlize INPUT"]
 hugoversion:
 deprecated: false
index 76c48d4dbbbf4166b9ecfd38bfcde577085be508..7709ad8c2bf767e3c83c6e5b990f634396b4ecf6 100644 (file)
@@ -1,7 +1,6 @@
 ---
 title: urls.Parse
 description: Parse parses a given url, which may be relative or absolute, into a URL structure.
-godocref: https://godoc.org/net/url#URL
 date: 2017-09-25
 publishdate: 2017-09-25
 lastmod: 2017-09-25
@@ -29,4 +28,4 @@ and returns a [URL](https://godoc.org/net/url#URL) structure. The struct fields
 ```
 {{ $url.Scheme }} → "http"
 {{ $url.Host }} → "www.gohugo.io"
-```
\ No newline at end of file
+```
index a41ec8e9a6b9848f58461764ba5ea701b8866fc5..f712cd984540e428c1b90c4f7d6ebd167b3a4c5c 100644 (file)
@@ -2,7 +2,6 @@
 title: where
 # linktitle: where
 description: Filters an array to only the elements containing a matching value for a given field.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index a5c27d4f3195b3f345754b1668458e84276ce0dc..ae643caf7d365efcb9dd76b9abfa145d1fa2a04d 100644 (file)
@@ -2,7 +2,6 @@
 title: with
 # linktitle: with
 description: Rebinds the context (`.`) within its scope and skips the block if the variable is absent or empty.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-03-12
index e3aa643e374c20fcf3f0681602e6f46453e727ff..9c78446ac66f15786a98e8b749ca04b11381a298 100644 (file)
@@ -106,222 +106,306 @@ The following is the full list of Hugo-defined variables with their default
 value in parentheses. Users may choose to override those values in their site
 config file(s).
 
-archetypeDir ("archetypes")
-: The directory where Hugo finds archetype files (content templates). {{% module-mounts-note %}}
+### archetypeDir 
 
-assetDir ("assets")
-: The directory where Hugo finds asset files used in [Hugo Pipes](/hugo-pipes/). {{% module-mounts-note %}}
+**Default value:** "archetypes"
 
-baseURL
-: Hostname (and path) to the root, e.g. https://bep.is/
+The directory where Hugo finds archetype files (content templates). {{% module-mounts-note %}}
 
-blackfriday
-: See [Configure Blackfriday](/getting-started/configuration-markup#blackfriday)
+### assetDir
 
-build
-: See [Configure Build](#configure-build)
+**Default value:** "assets"
 
-buildDrafts (false)
-: Include drafts when building.
+The directory where Hugo finds asset files used in [Hugo Pipes](/hugo-pipes/). {{% module-mounts-note %}}
 
-buildExpired  (false)
-: Include content already expired.
+### baseURL
+Hostname (and path) to the root, e.g. https://bep.is/
 
-buildFuture (false)
-: Include content with publishdate in the future.
+### blackfriday
+See [Configure Blackfriday](/getting-started/configuration-markup#blackfriday)
 
-caches
-: See [Configure File Caches](#configure-file-caches)
+### build
+See [Configure Build](#configure-build)
 
-cascade {{< new-in "0.86.0" >}}
-: Pass down down default configuration values (front matter) to pages in the content tree. The options in site config is the same as in page front matter, see [Front Matter Cascade](/content-management/front-matter#front-matter-cascade).
+### buildDrafts (false)
 
-canonifyURLs (false)
-: Enable to turn relative URLs into absolute.
+**Default value:** false
 
-contentDir ("content")
-: The directory from where Hugo reads content files. {{% module-mounts-note %}}
+Include drafts when building.
 
-dataDir ("data")
-: The directory from where Hugo reads data files. {{% module-mounts-note %}}
+### buildExpired
 
-defaultContentLanguage ("en")
-: Content without language indicator will default to this language.
+**Default value:** false
 
-defaultContentLanguageInSubdir (false)
-: Render the default content language in subdir, e.g. `content/en/`. The site root `/` will then redirect to `/en/`.
+Include content already expired.
 
-disableAliases (false)
-: Will disable generation of alias redirects. Note that even if `disableAliases` is set, the aliases themselves are preserved on the page. The motivation with this is to be able to generate 301 redirects in an `.htaccess`, a Netlify `_redirects` file or similar using a custom output format.
+### buildFuture
 
-disableHugoGeneratorInject (false)
-: Hugo will, by default, inject a generator meta tag in the HTML head on the _home page only_. You can turn it off, but we would really appreciate if you don't, as this is a good way to watch Hugo's popularity on the rise.
+**Default value:** false
 
-disableKinds ([])
-: Enable disabling of all pages of the specified *Kinds*. Allowed values in this list: `"page"`, `"home"`, `"section"`, `"taxonomy"`, `"term"`, `"RSS"`, `"sitemap"`, `"robotsTXT"`, `"404"`.
+Include content with publishdate in the future.
 
-disableLiveReload (false)
-: Disable automatic live reloading of browser window.
+### caches
+See [Configure File Caches](#configure-file-caches)
+
+### cascade
+
+{{< new-in "0.86.0" >}}
+
+Pass down down default configuration values (front matter) to pages in the content tree. The options in site config is the same as in page front matter, see [Front Matter Cascade](/content-management/front-matter#front-matter-cascade).
+
+### canonifyURLs
+
+**Default value:** false
+
+Enable to turn relative URLs into absolute.
+
+### contentDir
+
+**Default value:** "content"
+
+The directory from where Hugo reads content files. {{% module-mounts-note %}}
+
+### dataDir
+
+**Default value:** "data"
+
+The directory from where Hugo reads data files. {{% module-mounts-note %}}
+
+### defaultContentLanguage
+
+**Default value:** "en"
+
+Content without language indicator will default to this language.
+
+### defaultContentLanguageInSubdir
+
+**Default value:**  false
+
+Render the default content language in subdir, e.g. `content/en/`. The site root `/` will then redirect to `/en/`.
+
+### disableAliases
+
+**Default value:**  false
+
+Will disable generation of alias redirects. Note that even if `disableAliases` is set, the aliases themselves are preserved on the page. The motivation with this is to be able to generate 301 redirects in an `.htaccess`, a Netlify `_redirects` file or similar using a custom output format.
+
+### disableHugoGeneratorInject
+
+**Default value:**  false
+
+Hugo will, by default, inject a generator meta tag in the HTML head on the _home page only_. You can turn it off, but we would really appreciate if you don't, as this is a good way to watch Hugo's popularity on the rise.
+
+### disableKinds
+
+**Default value:**  []
+
+Enable disabling of all pages of the specified *Kinds*. Allowed values in this list: `"page"`, `"home"`, `"section"`, `"taxonomy"`, `"term"`, `"RSS"`, `"sitemap"`, `"robotsTXT"`, `"404"`.
+
+### disableLiveReload
+
+**Default value:**  false
+
+Disable automatic live reloading of browser window.
+
+### disablePathToLower
+
+**Default value:**  false
 
-disablePathToLower (false)
 : Do not convert the url/path to lowercase.
 
-enableEmoji (false)
-: Enable Emoji emoticons support for page content; see the [Emoji Cheat Sheet](https://www.webpagefx.com/tools/emoji-cheat-sheet/).
+### enableEmoji 
+
+**Default value:**  false
 
-enableGitInfo (false)
-: Enable `.GitInfo` object for each page (if the Hugo site is versioned by Git). This will then update the `Lastmod` parameter for each page using the last git commit date for that content file.
+Enable Emoji emoticons support for page content; see the [Emoji Cheat Sheet](https://www.webpagefx.com/tools/emoji-cheat-sheet/).
 
-enableInlineShortcodes (false)
-: Enable inline shortcode support. See [Inline Shortcodes](/templates/shortcode-templates/#inline-shortcodes).
+### enableGitInfo
 
-enableMissingTranslationPlaceholders (false)
-: Show a placeholder instead of the default value or an empty string if a translation is missing.
+**Default value:**  false
 
-enableRobotsTXT (false)
-: Enable generation of `robots.txt` file.
+Enable `.GitInfo` object for each page (if the Hugo site is versioned by Git). This will then update the `Lastmod` parameter for each page using the last git commit date for that content file.
 
-frontmatter
+### enableInlineShortcodes
 
-: See [Front matter Configuration](#configure-front-matter).
+**Default value:**  false
 
-footnoteAnchorPrefix ("")
-: Prefix for footnote anchors.
+Enable inline shortcode support. See [Inline Shortcodes](/templates/shortcode-templates/#inline-shortcodes).
 
-footnoteReturnLinkContents ("")
-: Text to display for footnote return links.
+### enableMissingTranslationPlaceholders
 
-googleAnalytics ("")
-: Google Analytics tracking ID.
+**Default value:**  false
 
-hasCJKLanguage (false)
-: If true, auto-detect Chinese/Japanese/Korean Languages in the content. This will make `.Summary` and `.WordCount` behave correctly for CJK languages.
+Show a placeholder instead of the default value or an empty string if a translation is missing.
 
-imaging
-: See [Image Processing Config](/content-management/image-processing/#image-processing-config).
+### enableRobotsTXT
 
-languages
-: See [Configure Languages](/content-management/multilingual/#configure-languages).
+**Default value:**  false
 
-languageCode ("")
-: The site's language code. It is used in the default [RSS template](/templates/rss/#configure-rss) and can be useful for [multi-lingual sites](/content-management/multilingual/#configure-multilingual-multihost).
+Enable generation of `robots.txt` file.
 
-languageName ("")
-: The site's language name.
+### frontmatter
 
-disableLanguages
-: See [Disable a Language](/content-management/multilingual/#disable-a-language)
+See [Front matter Configuration](#configure-front-matter).
 
-layoutDir ("layouts")
-: The directory from where Hugo reads layouts (templates).
+### footnoteAnchorPrefix
 
-log (false)
-: Enable logging.
+**Default value:**  ""
 
-logFile ("")
-: Log File path (if set, logging enabled automatically).
+Prefix for footnote anchors.
 
-markup
-: See [Configure Markup](/getting-started/configuration-markup).{{< new-in "0.60.0" >}}
+###  footnoteReturnLinkContents
 
-mediaTypes
+**Default value:**  ""
+
+Text to display for footnote return links.
+
+### googleAnalytics
+
+**Default value:**  ""
+
+Google Analytics tracking ID.
+
+### hasCJKLanguage
+
+**Default value:** false
+
+If true, auto-detect Chinese/Japanese/Korean Languages in the content. This will make `.Summary` and `.WordCount` behave correctly for CJK languages.
+
+### imaging
+See [Image Processing Config](/content-management/image-processing/#image-processing-config).
+
+### languages
+See [Configure Languages](/content-management/multilingual/#configure-languages).
+
+### disableLanguages
+
+See [Disable a Language](/content-management/multilingual/#disable-a-language)
+
+### markup
+See [Configure Markup](/getting-started/configuration-markup).{{< new-in "0.60.0" >}}
+
+### mediaTypes
 See [Configure Media Types](/templates/output-formats/#media-types).
 
-menu
-See [Add Non-content Entries to a Menu](/content-management/menus/#add-non-content-entries-to-a-menu).
+### menus
+See [Add Non-content Entries to a Menu](/content-management/menus/#add-non-content-entries-to-a-menu).
 
-minify
-See [Configure Minify](#configure-minify)
+### minify
+See [Configure Minify](#configure-minify)
 
-module
-Module config see [Module Config](/hugo-modules/configuration/).{{< new-in "0.56.0" >}}
+### module
+Module config see [Module Config](/hugo-modules/configuration/).{{< new-in "0.56.0" >}}
 
-newContentEditor ("")
-The editor to use when creating new content.
+### newContentEditor
+The editor to use when creating new content.
 
-noChmod (false)
-Don't sync permission mode of files.
+### noChmod
+Don't sync permission mode of files.
 
-noTimes (false)
-Don't sync modification time of files.
+### noTimes
+Don't sync modification time of files.
 
-outputFormats
+### outputFormats
 See [Configure Output Formats](#configure-additional-output-formats).
 
-paginate (10)
-: Default number of elements per page in [pagination](/templates/pagination/).
+### paginate 
+
+**Default value:** 10
+
+Default number of elements per page in [pagination](/templates/pagination/).
+
+### paginatePath
 
-paginatePath ("page")
-: The path element used during pagination (https://example.com/page/2).
+**Default value:** "page"
 
-permalinks
-: See [Content Management](/content-management/urls/#permalinks).
+The path element used during pagination (`https://example.com/page/2`).
 
-pluralizeListTitles (true)
-: Pluralize titles in lists.
+### permalinks
+See [Content Management](/content-management/urls/#permalinks).
 
-publishDir ("public")
-: The directory to where Hugo will write the final static site (the HTML files etc.).
+### pluralizeListTitles
 
-related
+**Default value:** true
+
+Pluralize titles in lists.
+
+### publishDir
+
+**Default value:** "public"
+
+The directory to where Hugo will write the final static site (the HTML files etc.).
+
+### related
 : See [Related Content](/content-management/related/#configure-related-content).{{< new-in "0.27" >}}
 
-relativeURLs (false)
-: Enable this to make all relative URLs relative to content root. Note that this does not affect absolute URLs.
+### relativeURLs 
+Enable this to make all relative URLs relative to content root. Note that this does not affect absolute URLs.
+
+### refLinksErrorLevel
+
+**Default value:** "ERROR"
+
+When using `ref` or `relref` to resolve page links and a link cannot resolved, it will be logged with this log level. Valid values are `ERROR` (default) or `WARNING`. Any `ERROR` will fail the build (`exit -1`).
+
+### refLinksNotFoundURL
+URL to be used as a placeholder when a page reference cannot be found in `ref` or `relref`. Is used as-is.
+
+### rssLimit
+
+Maximum number of items in the RSS feed.
+
+### sectionPagesMenu
+See ["Section Menu for Lazy Bloggers"](/templates/menu-templates/#section-menu-for-lazy-bloggers).
+
+### sitemap
+Default [sitemap configuration](/templates/sitemap-template/#configure-sitemapxml).
+
+### summaryLength
+
+**Default value:** 70
+
+The length of text in words to show in a [`.Summary`](/content-management/summaries/#hugo-defined-automatic-summary-splitting).
 
-refLinksErrorLevel ("ERROR")
-: When using `ref` or `relref` to resolve page links and a link cannot resolved, it will be logged with this logg level. Valid values are `ERROR` (default) or `WARNING`. Any `ERROR` will fail the build (`exit -1`).
+### taxonomies
+See [Configure Taxonomies](/content-management/taxonomies#configure-taxonomies).
 
-refLinksNotFoundURL
-: URL to be used as a placeholder when a page reference cannot be found in `ref` or `relref`. Is used as-is.
+### theme
+: See [Module Config](/hugo-modules/configuration/#module-config-imports) for how to import a theme.
 
-rssLimit (unlimited)
-: Maximum number of items in the RSS feed.
+### themesDir
 
-sectionPagesMenu ("")
-: See ["Section Menu for Lazy Bloggers"](/templates/menu-templates/#section-menu-for-lazy-bloggers).
+**Default value:**  "themes"
 
-sitemap
-: Default [sitemap configuration](/templates/sitemap-template/#configure-sitemapxml).
+The directory where Hugo reads the themes from.
 
-staticDir ("static")
-: A directory or a list of directories from where Hugo reads [static files][static-files]. {{% module-mounts-note %}}
+### timeout 
 
-summaryLength (70)
-: The length of text in words to show in a [`.Summary`](/content-management/summaries/#hugo-defined-automatic-summary-splitting).
+**Default value:** 10000
 
-taxonomies
-: See [Configure Taxonomies](/content-management/taxonomies#configure-taxonomies).
+Timeout for generating page contents, in milliseconds (defaults to 10&nbsp;seconds). *Note:* this is used to bail out of recursive content generation, if your pages are slow to generate (e.g., because they require large image processing or depend on remote contents) you might need to raise this limit.
 
-theme ("")
-: Theme to use (located by default in `/themes/THEMENAME/`).
+### timeZone 
 
-themesDir ("themes")
-: The directory where Hugo reads the themes from.
+{{< new-in "0.87.0" >}}
 
-timeout (10000)
-: Timeout for generating page contents, in milliseconds (defaults to 10&nbsp;seconds). *Note:* this is used to bail out of recursive content generation, if your pages are slow to generate (e.g., because they require large image processing or depend on remote contents) you might need to raise this limit.
+The time zone (or location), e.g. `Europe/Oslo`,  used to parse front matter dates without such information and in the [`time` function](/functions/time/). The list of valid values may be system dependent, but should include `UTC`, `Local`, and any location in the [IANA Time Zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
 
-timeZone {{< new-in "0.86.0" >}}
-: The time zone (or location), e.g. `Europe/Oslo`,  used to parse front matter dates without such information and in the [`time` function](/functions/time/).
+### title
+Site title.
 
-title ("")
-: Site title.
+### titleCaseStyle
 
-titleCaseStyle ("AP")
-: See [Configure Title Case](#configure-title-case)
+**Default value:**  "AP"
 
-uglyURLs (false)
-: When enabled, creates URL of the form `/filename.html` instead of `/filename/`.
+See [Configure Title Case](#configure-title-case)
 
-verbose (false)
-: Enable verbose output.
+### uglyURLs
+When enabled, creates URL of the form `/filename.html` instead of `/filename/`.
 
-verboseLog (false)
-: Enable verbose logging.
+### watch
 
-watch (false)
-: Watch filesystem for changes and recreate as needed.
+Watch filesystem for changes and recreate as needed.
 
 {{% note %}}
 If you are developing your site on a \*nix machine, here is a handy shortcut for finding a configuration option from the command line:
@@ -366,7 +450,7 @@ noJSConfigInAssets {{< new-in "0.78.0" >}}
 
 {{< new-in "0.67.0" >}}
 
-This is only relevant when running `hugo server`, and it allows to set HTTP headers during development, which allows you to test out your Content Security Policy and similar. The configuration format matches [Netlify's](https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file) with slighly more powerful [Glob matching](https://github.com/gobwas/glob):
+This is only relevant when running `hugo server`, and it allows to set HTTP headers during development, which allows you to test out your Content Security Policy and similar. The configuration format matches [Netlify's](https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file) with slightly more powerful [Glob matching](https://github.com/gobwas/glob):
 
 
 {{< code-toggle file="config">}}
index ae3fe7f9a06e84cfbc21b6f767028c6d4a23721c..cf1dfed2669cc20aefb9d2ff9f042430c23109f7 100644 (file)
@@ -552,7 +552,6 @@ Now that you've installed Hugo, read the [Quick Start guide][quickstart] and exp
 [installgo]: https://golang.org/dl/
 [linuxbrew]: https://docs.brew.sh/Homebrew-on-Linux
 [Path Editor]: https://patheditor2.codeplex.com/
-[pygments]: https://pygments.org
 [quickstart]: /getting-started/quick-start/
 [redhatforum]: https://discourse.gohugo.io/t/solved-fedora-copr-repository-out-of-service/2491
 [releases]: https://github.com/gohugoio/hugo/releases
index 6d8f2b1fc113fac102dcf34b918e10600e308ab3..662138ae6914992f0c50c20abdd8f6e309f918fc 100644 (file)
@@ -23,7 +23,7 @@ This quick start uses `macOS` in the examples. For instructions about how to ins
 
 It is recommended to have [Git installed](https://git-scm.com/downloads) to run this tutorial.
 
-For other approaches learning Hugo like book or a video tutorial refer to the [external learning resources](/getting-started/external-learning-resources/) page.
+For other approaches to learning Hugo (like books or video tutorials), refer to the [external learning resources](/getting-started/external-learning-resources/) page.
 {{% /note %}}
 
 ## Step 1: Install Hugo
@@ -140,7 +140,7 @@ Press Ctrl+C to stop
 
 **Navigate to your new site at [http://localhost:1313/](http://localhost:1313/).**
 
-Feel free to edit or add new content and simply refresh in browser to see changes quickly (You might need to force refresh in webbrowser, something like Ctrl-R usually works).
+Feel free to edit or add new content and simply refresh in browser to see changes quickly. (You might need to force refresh your web browser, something like Ctrl-R usually works.)
 
 ## Step 6: Customize the Theme
 
index 32c27027038858105302e06d3d2c4c6e0183ace8..96ecb930a265abe1585b6df10062645e822b4984 100644 (file)
@@ -176,7 +176,7 @@ Fortunately Hugo has an easy, embedded and simple solution for this. It's the fl
 
 LiveReload works by injecting JavaScript into the pages Hugo generates. The script creates a connection from the browser's web socket client to the Hugo web socket server.
 
-LiveReload is awesome for development. However, some Hugo users may use `hugo server` in production to instantly display updated content. The following methods make it easy to disable LiveReload:
+The following methods make it easy to disable LiveReload:
 
 ```
 hugo server --watch=false
diff --git a/content/en/hosting-and-deployment/deployment-with-wercker.md b/content/en/hosting-and-deployment/deployment-with-wercker.md
deleted file mode 100644 (file)
index fcd0ea8..0000000
+++ /dev/null
@@ -1,321 +0,0 @@
----
-title: Deployment with Wercker
-linktitle: Deployment with Wercker
-description: You can use a free tool called Wercker to automate deployments between your GitHub-hosted source and final website on GitHub pages.
-date: 2017-02-01
-publishdate: 2017-02-01
-lastmod: 2017-02-01
-categories: [hosting and deployment]
-keywords: [wercker,deployment,github,git]
-authors: [Arjen Schwarz, Samuel Debruyn]
-menu:
-  docs:
-    parent: "hosting-and-deployment"
-    weight: 60
-weight: 60
-sections_weight: 60
-draft: false
-aliases: [/tutorials/automated-deployments/]
-toc: true
-wip: false
-notesforauthors:
----
-
-## Goals
-
-By the end of this guide, you will have completed the following:
-
-* Creating a basic Hugo project and website
-* Version controlling your project with Git
-* Adding your project to GitHub
-* Automating site deployments with a free tool called Wercker
-* Deploying your website to GitHub Pages for free hosting
-
-## Assumptions
-
-1. You have a working familiarity with using Git for version control
-2. You have a GitHub account
-3. You have already created a basic Hugo project
-
-If you do not meet these assumptions, the [GitHub help section][githubhelp] has an explanation of how to install and use git. [Signing up for a GitHub][ghsignup] account is free as well. If you are completely unfamiliar with creating a new Hugo website, visit the [Hugo Quick Start][quickstart].
-
-## Create a Basic Hugo Site
-
-{{% note "This Guide Uses the Hugo CLI" %}}
-All the work for setting up a Hugo project and using this guide is done via the Hugo CLI's most basic commands. See the [command line reference page](/commands/) for a more exhaustive account of the CLI's features.
-{{% /note %}}
-
-First, create your new Hugo website using the [`hugo new site` command][basicusage] and change into the newly created directory for the project. In this guide, we are calling our new project `hugo-wercker-example`:
-
-{{< code file="hugo-new-site.sh" >}}
-hugo new site hugo-wercker-example
-cd hugo-wercker-example
-{{< /code >}}
-
-We will use the [Herring Cove theme][] by first cloning the theme into the `themes` directory.
-
-{{< code file="clone-herring-cove-theme.sh" >}}
-cd themes
-git clone https://github.com/spf13/herring-cove.git
-{{< /code >}}
-
-Cloning the project from the command line will conflict with our own version control. So, we need to remove the external git configuration that came with the clone of Herring Cove:
-
-{{< code file="remove-herring-cove-git.sh" >}}
-rm -rf herring-cove/.git
-{{< /code >}}
-
-We need content for Hugo to build. Let's add a quick `/about` page:
-
-```
-hugo new about.md
-```
-
-{{% note %}}
-The preceding example for the about page leverages archetypes to scaffold a new content file with preconfigured front matter. [Find out more about Hugo's archetypes](/content-management/archetypes/).
-{{% /note %}}
-
-Now you can edit `contents/about.md` in your text editor of choice, but this is not necessary for the purposes of this guide. Running the following command will build your Hugo site into the `public` directory.
-
-Once the website is build, it's a good idea to run the following command to start a local server and ensure you're changes have been implemented:
-
-```
-hugo server --theme=herring-cove
-```
-
-If everything is fine, you should see something similar to the image below when you go to <http://localhost:1313> in your browser.
-
-![][1]
-
-## Set up Version Control in Git
-
-Adding Git to your project is done by running the `git init` command from the root directory of your project.
-
-```
-git init
-```
-
-Running `git status` at this point will show you the following entries: the `config.toml` file, the `themes` directory, the `contents` directory, and the `public` directory. However, we don't want the `public` directory version controlled because Wercker is responsible for generating the finished website later on. Therefore, we'll add a `.gitignore` file to our project that will exclude the `/public` directory from being tracked by Git:
-
-{{< code file="gitignore.sh" >}}
-echo "/public" >> .gitignore
-{{< /code >}}
-
-Wercker might complain when we try to build the site later on because we currently do not have any static files outside of the `themes` directory. We simply have to add *any* file to the static folder to prevent Wercker from complaining. To keep this guide simple, let's add a `robots.txt`. The following command creates the file in `/static`. The contents of the `robots.txt` lets search engines know they have full access to crawl the published website:
-
-{{< code file="addrobotstxt.sh" >}}
-echo "User-agent: *\nDisallow:" > static/robots.txt
-{{< /code >}}
-
-Now we need to add (i.e., [stage [see Git documentation]][gitbasics]) and commit all of our changes in the repository into Git:
-
-```
-git commit -a -m "Initial commit"
-```
-
-## Add the Project to GitHub
-
-Now we need to create a new repository on GitHub. Once you are signed in to GitHub, you can add a new repository by clicking on the **&#43;&#9660;** dropdown at the top right or by going to [https://github.com/new](https://github.com)..
-
-We then choose a name for the project (`hugo-wercker-example`). When clicking on create repository GitHub displays the commands for adding an existing project to the site. The commands shown below are the ones used for this site, if you're following along you will need to use the ones shown by GitHub. Once we've run those commands the project is in GitHub and we can move on to setting up the Wercker configuration. Be sure to replace `YourUserName` with your GitHub account/username:
-
-{{< code file="setup-gh-repo.sh" >}}
-git remote add origin git@github.com:YourUsername/hugo-wercker-example.git
-git push -u origin master
-{{< /code >}}
-
-![][2]
-
-## Set Up Wercker
-
-To sign up for a free Wercker account, go to <https://www.wercker.com> and click the **Sign Up** button on the top right of the home screen.
-
-![][3]
-
-### Register for Wercker with Your GitHub Account
-
-Sign up for Wercker using your GitHub credentials. If you don't have a GitHub account, or don't want to use it for your account, you have the option to register with a username and password as well. However, the second half of this guide---devoted to hosting your website on GitHub pages---will no longer be of interest to you.
-
-![][4]
-
-### Connect GitHub or Bitbucket
-
-After you are registered, you will need to link your GitHub or Bitbucket account to Wercker. You can link your account by navigating to your profile settings and then selecting "Git connections."
-
-![][17]
-
-If you registered for Wercker using GitHub, it will most likely look like the following image. To connect a missing service, click the **Connect** button, which may send you to either GitHub or Bitbucket to sign into your respective account.
-
-![][5]
-
-### Add Your Project
-
-Now that we've got all the preliminaries out of the way, it's time to set up our application. For this we click on the **+ Create** button next to Applications and choose GitHub as our provider.
-
-![][6]
-
-### Select a Repository
-
-When selecting GitHub, Wercker will show all your GitHub repositories. You have the option to filter repositories using the search input at the top of the repositories list. Once you have your repository selected, click the **Use selected repo** button.
-
-![][7]
-
-### Select the Repository Owner
-
-In the next step, Wercker asks you to select the repository owner. Select your GitHub account and continue.
-
-![][8]
-
-### Configure Access
-
-{{% note %}}
-This guide assumes you are using a public GitHub repository and understand that the [published GitHub Pages website will be available to everyone](https://help.github.com/articles/what-is-github-pages/#usage-limits).
-{{%/note %}}
-
-This step can be slightly tricky. Wercker does not have privileges to check out your private projects by default and therefore needs your permission to add a deploy key to your repository. By selecting the first option, you're simply allowing Wercker to check out the code via the same methods available to anyone visiting the project on GitHub.
-
-![][9]
-
-### Wercker.yml
-
-Wercker will now attempt to create an initial `wercker.yml` file for you. More specifically, it will create a code block within the Wercker interface that you can copy to your finished file. Wercker gives us a `debian` box because our project does not have any special requirements.
-
-Now we need to create a *wercker.yml* file in the root of our project. This file will contain our Wercker app's configuration. After we finish setting up our app, we will expand the contents of this file to build and deploy our website.
-
-![][10]
-
-### Public or Private
-
-This is a personal choice. You can make an app public so that everyone can see more details about it. Keeping it private or public does not provide any overt benefits for you as the creator of the app. That said, [the app we are currently creating has been made public][publicappurl] to facilitate easier usage of this hosting and deployment guide.
-
-![][11]
-
-#### App Successfully Created
-
-The application is now added and Wercker will offer you the chance to trigger a build. However, we will decline the offer because we haven't yet pushed our `wercker.yml` file to our GitHub repository.
-
-![][12]
-
-### Add the Hugo-build Step
-
-Now we need to add the Wercker steps to our build process. First, we go to the "Registry" action in the top menu. When in the registry, we can search for "hugo build". Select the "Hugo-Build by **arjen**" step.
-
-![][13]
-
-### Use the Hugo-build Step
-
-A summary of very basic usage is available at the top of the details for the Hugo-Build step. Below the basic usage is the contents of the `README.md` file associated with the step's repository. `README.md`'s on Wercker usually contain more details about the advanced options and examples of usage.
-
-We're not going to use any of the advanced features of Hugo-Build in this guide. Let's return to our project and add the first section of details we need to our `wercker.yml`.
-
-{{% warning "Hugo Version in `wercker.yml`" %}}
-The docs are a work in progress. As such, the `version` represented in this guide may not represent the version you've been using for local development. Be sure to use the appropriate Hugo version for your build step.
-{{% /warning %}}
-
-{{< code file="wercker-build-step.yml" >}}
-box: debian
-build:
-  steps:
-    - arjen/hugo-build:
-        version: "0.17"
-        theme: herring-cove
-        flags: --buildDrafts=true
-{{< /code >}}
-
-We can conclude this first step by pushing our `wercker.yml` to our GitHub repository and then seeing the magic at work within Wercker's interface.
-
-{{< code file="push-wecker-to-gh.sh" >}}
-git commit -a -m "Add wercker.yml"
-git push origin master
-{{< /code >}}
-
-If completed and successful, a green check mark should appear in the commit column of your first build. However, this is only the build step. We still need to deploy the website to our free hosting on GitHub Pages. If you would like more details about the build, you can click the commit hash.
-
-![][14]
-
-### Add a GitHub Pages Deploy Step to `wercker.yml`
-
-In order to deploy to GitHub Pages, we need to add a deploy step to our `wercker.yml`. We are going to add `lukevevier/gh-pages`, the most popular GitHub Pages step in the Wercker Steps repository. Additionally, we need to ensure the box Wercker uses for our deployments has git and ssh installed. We can do this using the `install-packages` command. Here is our *final* `wercker.yml` file:
-
-{{< code file="wercker.yml" >}}
-box: debian
-build:
-  steps:
-    - arjen/hugo-build:
-        version: "0.17"
-        theme: herring-cove
-        flags: --buildDrafts=true
-deploy:
-  steps:
-    - install-packages:
-        packages: git ssh-client
-    - lukevivier/gh-pages@0.2.1:
-        token: $GIT_TOKEN
-        domain: hugo-wercker.ig.nore.me
-        basedir: public
-{{< /code >}}
-
-### How does the GitHub Pages Configuration Work?
-
-We've provided a some important information in our `wercker.yml`. First, we've added the domain we want to use for our published website. Configuring the domain here will ensure that GitHub Pages is aware of the domain we want to use.
-
-Secondly, we've configured the `basedir` to `public`. This is the directory that will be used as the website on GitHub Pages. `public` is also the default publishing directory in Hugo. (For more information, see [hugo's configuration docs][hugoconfig]).
-
-Lastly, you'll notice a `$GIT_TOKEN` variable. This is used for pushing our changes to GitHub. We will need to configure this token before Wercker can build our website.
-
-### Set the App's Deploy Target
-
-We can set our deploy target by going to our app's settings and clicking on **Deploy targets**. Now select **Add deploy target** and then **Custom deploy**.
-
-![][15]
-
-### Configure the Deploy Step in Wercker
-
-The next screen requires you fill in the deploy target name.
-
-1. Make sure you enable **auto deploy** from the **master** branch.
-2. Add a variable for the **GIT_TOKEN**. You'll need to create an access token in GitHub. Follow the directions in [GitHub help][accesstokenghhelp].
-3. With the deploy step configured in Wercker, we can push the updated wercker.yml file to GitHub and it will create the GitHub pages site for us.
-
-The website described in this guide is available at <http://hugo-wercker.ig.nore.me>.
-
-![][16]
-
-## Conclusion
-
-Once this workflow is established, you can update your website automatically by pushing any content changes to your GitHub repository.
-
-### Code for the Wercker Deployment Guide
-
-[The source code for the site used in this guide is available on GitHub][guidesource], as is the [Wercker Hugo Build step][guidestep].
-
-[1]: /images/hosting-and-deployment/deployment-with-wercker/creating-a-basic-hugo-site.png
-[2]: /images/hosting-and-deployment/deployment-with-wercker/adding-the-project-to-github.png
-[3]: /images/hosting-and-deployment/deployment-with-wercker/wercker-sign-up.png
-[4]: /images/hosting-and-deployment/deployment-with-wercker/wercker-sign-up-page.png
-[5]: /images/hosting-and-deployment/deployment-with-wercker/wercker-git-connections.png
-[6]: /images/hosting-and-deployment/deployment-with-wercker/wercker-add-app.png
-[7]: /images/hosting-and-deployment/deployment-with-wercker/wercker-select-repository.png
-[8]: /images/hosting-and-deployment/deployment-with-wercker/wercker-select-owner.png
-[9]: /images/hosting-and-deployment/deployment-with-wercker/wercker-access.png
-[10]: /images/hosting-and-deployment/deployment-with-wercker/werckeryml.png
-[11]: /images/hosting-and-deployment/deployment-with-wercker/public-or-not.png
-[12]: /images/hosting-and-deployment/deployment-with-wercker/and-we-ve-got-an-app.png
-[13]: /images/hosting-and-deployment/deployment-with-wercker/wercker-search.png
-[14]: /images/hosting-and-deployment/deployment-with-wercker/using-hugo-build.png
-[15]: /images/hosting-and-deployment/deployment-with-wercker/adding-a-github-pages-step.png
-[16]: /images/hosting-and-deployment/deployment-with-wercker/configure-the-deploy-step.png
-[17]: /images/hosting-and-deployment/deployment-with-wercker/wercker-account-settings.png
-
-
-[accesstokenghhelp]: https://help.github.com/articles/creating-an-access-token-for-command-line-use/
-[basicusage]: /getting-started/usage/
-[ghsignup]: https://github.com/join
-[gitbasics]: https://git-scm.com/book/en/v2/Getting-Started-Git-Basics
-[githubhelp]: https://help.github.com/articles/set-up-git/
-[guidesource]: https://github.com/ArjenSchwarz/hugo-wercker-example
-[guidestep]: https://github.com/ArjenSchwarz/wercker-step-hugo-build
-[Herring Cove theme]: https://github.com/spf13/herring-cove
-[hugoconfig]: /getting-started/configuration/
-[publicappurl]: https://app.wercker.com/#applications/5586dcbdaf7de9c51b02b0d5
-[quickstart]: /getting-started/quick-start/
index ef387cdce3e226f8e2d907c9c5f61f6d8d8de9c9..3a4039f90affbf034e51fbf269b2592826b190e0 100644 (file)
@@ -28,7 +28,6 @@ aliases: []
 
 Go to the [Firebase console][console] and create a new project (unless you already have a project). You will need to globally install `firebase-tools` (node.js):
 
-
 ```
 npm install -g firebase-tools
 ```
@@ -88,4 +87,3 @@ firebase deploy --token $FIREBASE_DEPLOY_TOKEN
 [console]: https://console.firebase.google.com
 [Quick Start]: /getting-started/quick-start/
 [signup]: https://console.firebase.google.com/
-[Wercker]: /hosting-and-deployment/deployment-with-wercker/
index 391868c590257b070ef572f26ebd5f9515753c02..999ebc1ab9373db311c3131b12151267bbab725b 100755 (executable)
@@ -37,7 +37,7 @@ config [string]
 : Path to the PostCSS configuration file
 
 noMap [bool]
-: Default is `true`. Disable the default inline sourcemaps
+: Default is `false`. Disable the default inline sourcemaps
 
 inlineImports [bool] {{< new-in "0.66.0" >}}
 : Default is `false`. Enable inlining of @import statements. It does so recursively, but will only import a file once.
index 08706ffceaf266f58b4b08c3863fe968abccb050..9b7928b47e795dd90c562c8bda64ebc11450ae79 100644 (file)
@@ -24,7 +24,7 @@ Hugo also depends on a lot of other great projects. A big thanks to all of our d
 - Add `AsciiDoc` support using external helpers.
 - Add experimental support for [`Mmark`](https://github.com/miekg/mmark) markdown processor
 - Bash autocomplete support via `genautocomplete` command
-- Add section menu support for a [Section Menu for "the Lazy Blogger"](http://gohugo.io/extras/menus.md#section-menu-for-the-lazy-blogger")
+- Add section menu support for a [Section Menu for Lazy Bloggers](https://gohugo.io/templates/menu-templates/#section-menu-for-lazy-bloggers)
 - Add support for `Ace` base templates
 - Adding `RelativeURLs = true` to site config will now make all the relative URLs relative to the content root.
 - New template functions:
index 5b0d5a6b5ddea50a3b789624701ecf93859303a8..68a893bfbdeaccc0c48d30e26b44b70679888130 100644 (file)
@@ -2,7 +2,7 @@
 ---
 date: 2021-07-30
 title: "Hugo 0.86.1: One Bug Fix"
-description: "This version fixes a of bug introduced in 0.86.0."
+description: "This version fixes a bug introduced in 0.86.0."
 categories: ["Releases"]
 images:
 - images/blog/hugo-bug-poster.png
diff --git a/content/en/news/0.87.0-relnotes/featured.png b/content/en/news/0.87.0-relnotes/featured.png
new file mode 100644 (file)
index 0000000..21d2098
Binary files /dev/null and b/content/en/news/0.87.0-relnotes/featured.png differ
diff --git a/content/en/news/0.87.0-relnotes/index.md b/content/en/news/0.87.0-relnotes/index.md
new file mode 100644 (file)
index 0000000..e033aaa
--- /dev/null
@@ -0,0 +1,90 @@
+
+---
+date: 2021-08-03
+title: "Localized Time and Dates and Numbers"
+description: "Hugo 0.87.0 brings time zone support, localized time and dates and numbers backed by CLDR, and more."
+categories: ["Releases"]
+---
+
+Hugo `0.87` brings two long sought-after features: Default time zone support (per language if needed) for dates without zone offset or location info, and localized time and dates and numbers (backed by [CLDR](https://en.wikipedia.org/wiki/Common_Locale_Data_Repository)).
+
+For more information, see:
+
+* The [time zone config](https://gohugo.io/getting-started/configuration/#timezone) documentation.
+* The [time.Format](https://gohugo.io/functions/dateformat/) documentation. This function will now give you localized dates (with weekdays and months in the current language). It supports all of Go's layout syntax, but also some predefined constants, e.g. `{{ .Date | time.Format ":date_long" }}`.
+* A set of new [localized number formatting ](https://gohugo.io/functions/lang/) functions.
+
+Also in this release, we have switched to using [go-toml](https://github.com/pelletier/go-toml) for all things TOML in Hugo. A big thanks to [@pelletier](https://github.com/pelletier) for his work on the `v2` version. It's both faster than what we had and [TOML v1.0.0](https://toml.io/en/v1.0.0) compliant.
+
+This release represents **40 contributions by 4 contributors** to the main Hugo code base.[@bep](https://github.com/bep) leads the Hugo development with a significant amount of contributions, but also a big shoutout to [@dependabot[bot]](https://github.com/apps/dependabot), [@digitalcraftsman](https://github.com/digitalcraftsman), and [@jmooring](https://github.com/jmooring) for their ongoing contributions.
+
+Many have also been busy writing and fixing the documentation in [hugoDocs](https://github.com/gohugoio/hugoDocs),
+which has received **1 contributions by 1 contributors**.
+
+Hugo now has:
+
+* 53261+ [stars](https://github.com/gohugoio/hugo/stargazers)
+* 430+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
+* 395+ [themes](http://themes.gohugo.io/)
+
+
+## Notes
+
+* Deprecate Blackfriday and fix a potential deadlock in config [c7252224](https://github.com/gohugoio/hugo/commit/c7252224c4fecfe8321f31b901e2510d98b657c4) [@bep](https://github.com/bep) [#8792](https://github.com/gohugoio/hugo/issues/8792)[#8791](https://github.com/gohugoio/hugo/issues/8791)
+
+## Enhancements
+
+### Templates
+
+* Adjust tests to handle matching local time zones [9ff17c33](https://github.com/gohugoio/hugo/commit/9ff17c332405da5830cef9b3711706b1fc9a7444) [@bep](https://github.com/bep) [#8843](https://github.com/gohugoio/hugo/issues/8843)
+* Add new localized versions of lang.FormatNumber etc. [7907d24b](https://github.com/gohugoio/hugo/commit/7907d24ba16fc5a80930c1aabf5144e684ff7f29) [@bep](https://github.com/bep) [#8820](https://github.com/gohugoio/hugo/issues/8820)
+
+### Other
+
+* Make sure module config loading errors have file positioning info [d70c4857](https://github.com/gohugoio/hugo/commit/d70c485707edfd445bcfc0e84181bc15eb146e76) [@bep](https://github.com/bep) [#8845](https://github.com/gohugoio/hugo/issues/8845)
+* Remove superflous replace statement [7aaaf7e3](https://github.com/gohugoio/hugo/commit/7aaaf7e33afd05d2c74d74fbbfbd34d55e8129eb) [@bep](https://github.com/bep) 
+* Reduce binary size vs locale, update to CLDR v36.1 [3a966555](https://github.com/gohugoio/hugo/commit/3a96655592d0b0db4126f20ca717d553dda9c4ed) [@bep](https://github.com/bep) [#8839](https://github.com/gohugoio/hugo/issues/8839)[#8841](https://github.com/gohugoio/hugo/issues/8841)
+* Update github.com/tdewolff/minify/v2 v2.9.20 => v2.9.21 [9a7383ca](https://github.com/gohugoio/hugo/commit/9a7383caf3945b9b11db2b108003f87e2e8b6a3a) [@jmooring](https://github.com/jmooring) [#8831](https://github.com/gohugoio/hugo/issues/8831)
+* Fail on invalid time zone [4d221ce4](https://github.com/gohugoio/hugo/commit/4d221ce468a1209ee9dd6cbece9d1273dad6a29b) [@bep](https://github.com/bep) [#8832](https://github.com/gohugoio/hugo/issues/8832)
+* Improve handling of <nil> Params [e3dc5240](https://github.com/gohugoio/hugo/commit/e3dc5240f01fd5ec67643e40f27c026d707da110) [@bep](https://github.com/bep) [#8825](https://github.com/gohugoio/hugo/issues/8825)
+* Merge branch 'release-0.86.1' [268065cb](https://github.com/gohugoio/hugo/commit/268065cb2d8339392766a23703beaf7cc49d6b5c) [@bep](https://github.com/bep) 
+* bump github.com/evanw/esbuild from 0.12.16 to 0.12.17 [e90b3591](https://github.com/gohugoio/hugo/commit/e90b3591a155d1266a86c9490886720740b9d62e) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/getkin/kin-openapi from 0.67.0 to 0.68.0 [4b7da6a9](https://github.com/gohugoio/hugo/commit/4b7da6a9d720ed5ab4b45d6aa3b0b7af4683d02f) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* Go back to WARNING for Page deprecations [726fe9c3](https://github.com/gohugoio/hugo/commit/726fe9c3c97a9c979dc7862e7f226fc5ec1341de) [@bep](https://github.com/bep) 
+* Handle toml.LocalDate and toml.LocalDateTime in front matter [b5de37ee](https://github.com/gohugoio/hugo/commit/b5de37ee793c01f2acccdea7119be05c4182723f) [@bep](https://github.com/bep) [#8801](https://github.com/gohugoio/hugo/issues/8801)
+* Upgrade github.com/pelletier/go-toml/v2 v2.0.0-beta.3 => v2.0.0-beta.3.0.20210727221244-fa0796069526 [bf301daf](https://github.com/gohugoio/hugo/commit/bf301daf158e5e9673ad5f457ea3a264315942b5) [@bep](https://github.com/bep) 
+* Switch to go-toml v2 [a3701e09](https://github.com/gohugoio/hugo/commit/a3701e09313695d4a0f6fb0eb7844c1a4befc07a) [@bep](https://github.com/bep) [#8801](https://github.com/gohugoio/hugo/issues/8801)
+* bump github.com/tdewolff/minify/v2 from 2.9.19 to 2.9.20 [40b6016c](https://github.com/gohugoio/hugo/commit/40b6016cf3f7aac541b042d32e3a162411fd9cd0) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* Add a TOML front matter benchmark [7e130571](https://github.com/gohugoio/hugo/commit/7e1305710f08d26d9214abb5410ccd675e59a6e9) [@bep](https://github.com/bep) 
+* Add timezone support for front matter dates without one [efa5760d](https://github.com/gohugoio/hugo/commit/efa5760db5ef39ae084bfccb5b8f756c7b117a2a) [@bep](https://github.com/bep) [#8810](https://github.com/gohugoio/hugo/issues/8810)
+* Localize time.Format [a57dda85](https://github.com/gohugoio/hugo/commit/a57dda854b5efd3429af5f0b1564fc9d9d5439b9) [@bep](https://github.com/bep) [#8797](https://github.com/gohugoio/hugo/issues/8797)
+* bump github.com/getkin/kin-openapi from 0.61.0 to 0.67.0 [f9afba93](https://github.com/gohugoio/hugo/commit/f9afba933579de07d2d2e36a457895ec5f1b7f01) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/spf13/cast from 1.3.1 to 1.4.0 [a5d2ba42](https://github.com/gohugoio/hugo/commit/a5d2ba429d34004efd3c6b82c1bcb130c85aca9c) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump google.golang.org/api from 0.45.0 to 0.51.0 [31972f36](https://github.com/gohugoio/hugo/commit/31972f3647b284eea1a66a2e27ed42d04a391a7a) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/sanity-io/litter from 1.5.0 to 1.5.1 [2e58782f](https://github.com/gohugoio/hugo/commit/2e58782f96972487dc5e5ba91d0256ec6e86dad7) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/mattn/go-isatty from 0.0.12 to 0.0.13 [7b68f652](https://github.com/gohugoio/hugo/commit/7b68f6524d24d450330cbe4a2380301e66abee4a) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/spf13/cobra from 1.1.3 to 1.2.1 [81265af2](https://github.com/gohugoio/hugo/commit/81265af2cccd3247df87f05eebf8907a14e978a4) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/mitchellh/mapstructure from 1.3.3 to 1.4.1 [c102c971](https://github.com/gohugoio/hugo/commit/c102c9719b3a29406ef59dc18eca6bd280e4dc43) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/google/go-cmp from 0.5.5 to 0.5.6 [7c0f904f](https://github.com/gohugoio/hugo/commit/7c0f904f29c41e8782b44a37fd4e98e441cd2b2c) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/mitchellh/hashstructure from 1.0.0 to 1.1.0 [b2fbd4d1](https://github.com/gohugoio/hugo/commit/b2fbd4d13a47ce3f6a56f08d0bda77e16793de72) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/gobuffalo/flect from 0.2.2 to 0.2.3 [90041d1b](https://github.com/gohugoio/hugo/commit/90041d1b6d4eeb91ea085f5a97b02887159a655b) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/pelletier/go-toml from 1.9.0 to 1.9.3 [05047096](https://github.com/gohugoio/hugo/commit/05047096f52e43ff09acbc50616441bb42a1c6f7) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/aws/aws-sdk-go from 1.38.23 to 1.40.8 [a469156e](https://github.com/gohugoio/hugo/commit/a469156ea4ad023aa4fda0d3fb657ce003412abb) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/tdewolff/minify/v2 from 2.9.18 to 2.9.19 [18fdd85b](https://github.com/gohugoio/hugo/commit/18fdd85bcc4ac2d9a33546dca8a0a24f63987361) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* Update github.com/evanw/esbuild v0.11.16 => v0.12.16 [aeb1935d](https://github.com/gohugoio/hugo/commit/aeb1935d44eb258a794c8f055eedaf3a7655a3ad) [@bep](https://github.com/bep) 
+* Update github.com/yuin/goldmark v1.3.9 => v1.4.0 [e09d7882](https://github.com/gohugoio/hugo/commit/e09d7882c88812bedb2c2e66b68c7eed21213dbc) [@bep](https://github.com/bep) 
+* bump github.com/frankban/quicktest from 1.12.0 to 1.13.0 [15c0eed0](https://github.com/gohugoio/hugo/commit/15c0eed0487598ac1e5a6fff167b19031b6595bc) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* Bump all long-living deprecations to ERRORs [91cbb963](https://github.com/gohugoio/hugo/commit/91cbb963020ac2aead68ff2bbd7e9077d5558abd) [@bep](https://github.com/bep) 
+
+## Fixes
+
+### Other
+
+* Fix error handling for the time func alias [6c70e1f2](https://github.com/gohugoio/hugo/commit/6c70e1f22f365322d5f754302e110c9ed716b215) [@bep](https://github.com/bep) [#8835](https://github.com/gohugoio/hugo/issues/8835)
+* Fix a potential deadlock in config reading [94b616bd](https://github.com/gohugoio/hugo/commit/94b616bdfad177daa99f5e87535943f509198f6f) [@bep](https://github.com/bep) [#8791](https://github.com/gohugoio/hugo/issues/8791)
+* Fix theme count in release notes [a352d19d](https://github.com/gohugoio/hugo/commit/a352d19d881474f53d01791be4febd305453a9d6) [@digitalcraftsman](https://github.com/digitalcraftsman) 
+
+
+
+
+
diff --git a/content/en/news/0.88.0-relnotes/featured.png b/content/en/news/0.88.0-relnotes/featured.png
new file mode 100644 (file)
index 0000000..94af243
Binary files /dev/null and b/content/en/news/0.88.0-relnotes/featured.png differ
diff --git a/content/en/news/0.88.0-relnotes/index.md b/content/en/news/0.88.0-relnotes/index.md
new file mode 100644 (file)
index 0000000..9dfe9e6
--- /dev/null
@@ -0,0 +1,62 @@
+
+---
+date: 2021-09-02
+title: "Go 1.17 Update"
+description: "Hugo 0.88.0 brings Go 1.17 support, a dependency refresh, and more."
+categories: ["Releases"]
+---
+
+The most important piece in this release is the Go 1.17 update. This release is built with that new Go version, but also and more importantly, the Hugo Modules logic has been updated to support Go's new way of (lazy) loading transitive dependencies. If you already have Go 1.17 installed, building existing Hugo Modules backed projects have not been an issue, but `hugo mod init` for a new project could give you _too new_ versions of transitive dependencies. Hugo 0.88 fixes this.
+
+This release represents **26 contributions by 6 contributors** to the main Hugo code base.[@bep](https://github.com/bep) leads the Hugo development with a significant amount of contributions, but also a big shoutout to [@dependabot[bot]](https://github.com/apps/dependabot), [@helfper](https://github.com/helfper), and [@wzshiming](https://github.com/wzshiming) for their ongoing contributions.
+
+Many have also been busy writing and fixing the documentation in [hugoDocs](https://github.com/gohugoio/hugoDocs),
+which has received **9 contributions by 6 contributors**. A special thanks to [@bep](https://github.com/bep), [@jmooring](https://github.com/jmooring), [@StevenMaude](https://github.com/StevenMaude), and [@coliff](https://github.com/coliff) for their work on the documentation site.
+
+Hugo now has:
+
+* 53915+ [stars](https://github.com/gohugoio/hugo/stargazers)
+* 430+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors)
+* 404+ [themes](http://themes.gohugo.io/)
+
+## Notes
+* We have fixed a bug with the import order in `js.Build` for the case `./foo` when both `./foo.js` and `./foo/index.js` exists. This is in line with how both Node and ESBuild's native import resolver does it. We discovered this trying to build AlpineJS v3 from source mounted in `/assets`. See [cf73cc2e](https://github.com/gohugoio/hugo/commit/cf73cc2ececd4e794df09ea382a38ab18960d84e) [@bep](https://github.com/bep) [#8945](https://github.com/gohugoio/hugo/issues/8945).
+
+## Enhancements
+
+### Templates
+
+* Handle nil values in time.AsTime [abd969a6](https://github.com/gohugoio/hugo/commit/abd969a670852f9ed57c1a26434445aa985706fe) [@bep](https://github.com/bep) 
+* Handle nil values in time.AsTime [3e110728](https://github.com/gohugoio/hugo/commit/3e11072892ca31bb76980ee38890a4bd92d83dfd) [@bep](https://github.com/bep) [#8865](https://github.com/gohugoio/hugo/issues/8865)
+
+### Other
+
+* Run go mod tidy [6631c9c7](https://github.com/gohugoio/hugo/commit/6631c9c7e00fb9dc237b4ec2fbb261d05df268d1) [@bep](https://github.com/bep) 
+* Don't fail on template errors on go mod graph etc. [7d1f806e](https://github.com/gohugoio/hugo/commit/7d1f806ecb3621ae7b545a686d04de4568814055) [@bep](https://github.com/bep) [#8942](https://github.com/gohugoio/hugo/issues/8942)
+* bump github.com/getkin/kin-openapi from 0.74.0 to 0.75.0 [04b59599](https://github.com/gohugoio/hugo/commit/04b59599613a62d378bf3710ac0eb06c9543b96d) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/frankban/quicktest from 1.13.0 to 1.13.1 [c278b6e4](https://github.com/gohugoio/hugo/commit/c278b6e45d56b101db9691347f9e5a99a9319572) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/evanw/esbuild from 0.12.22 to 0.12.24 [107c86fe](https://github.com/gohugoio/hugo/commit/107c86febbb7057c4ae90c6a35b3e8eda24297c7) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* Avoid failing with "module not found" for hugo mod init and similar [a0489c2d](https://github.com/gohugoio/hugo/commit/a0489c2dfd3ceb4d0702de0da7a4af3eabce05e5) [@bep](https://github.com/bep) [#8940](https://github.com/gohugoio/hugo/issues/8940)
+* Update to Go 1.17 [0fc2ce9e](https://github.com/gohugoio/hugo/commit/0fc2ce9e4bf0524994a861b7300e4332f6f8d390) [@bep](https://github.com/bep) [#8930](https://github.com/gohugoio/hugo/issues/8930)
+* Remove Pygments from snapcraft.yml [32569285](https://github.com/gohugoio/hugo/commit/32569285c181c8798ef594c12d3cfd7f9a252a04) [@anthonyfok](https://github.com/anthonyfok) 
+* bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.0 [5a46eefb](https://github.com/gohugoio/hugo/commit/5a46eefbc6da3463b796ada8d15902be197455a3) [@bep](https://github.com/bep) [#8920](https://github.com/gohugoio/hugo/issues/8920)
+* Add tabindex when code is not highlighted [7a15edaf](https://github.com/gohugoio/hugo/commit/7a15edafe240471c072d3548b72ccda0271ffd8f) [@helfper](https://github.com/helfper) 
+* bump github.com/evanw/esbuild from 0.12.17 to 0.12.22 [2f0945ba](https://github.com/gohugoio/hugo/commit/2f0945bafe501103abe97b2f2b5566b28ec48e52) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump golang.org/x/text from 0.3.6 to 0.3.7 [7ba3f3d2](https://github.com/gohugoio/hugo/commit/7ba3f3d201e386cb9c7c15df5a6cc1c4b46473bd) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.0 [f7016524](https://github.com/gohugoio/hugo/commit/f70165242b98e3ee182fbac08bf2893a7f09e961) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* Prevent minifier from removing quotes around post-processed attributes [bc0743ed](https://github.com/gohugoio/hugo/commit/bc0743ed8eafc3c2d9b21a1e8f1b05d64b85e8ba) [@bep](https://github.com/bep) [#8884](https://github.com/gohugoio/hugo/issues/8884)
+* Avoid too many watch file handles causing the server to fail to start [ffa2fe61](https://github.com/gohugoio/hugo/commit/ffa2fe61172aa0d892234b23d1497c77a6a7f5c4) [@bep](https://github.com/bep) 
+* Remove some pygments references [d966f5d0](https://github.com/gohugoio/hugo/commit/d966f5d08d7f75f1ae9acd94e292bf61de2adf0d) [@helfper](https://github.com/helfper) 
+* Avoid too many watch file handles causing the server to fail to start [3f38c785](https://github.com/gohugoio/hugo/commit/3f38c785b7208440e2a9dd9a80cb39d4ae23e676) [@wzshiming](https://github.com/wzshiming) [#8904](https://github.com/gohugoio/hugo/issues/8904)
+* bump github.com/getkin/kin-openapi from 0.68.0 to 0.74.0 [24589c08](https://github.com/gohugoio/hugo/commit/24589c0814bc5d21565470bec6215ee792f1655e) [@dependabot[bot]](https://github.com/apps/dependabot) 
+* Update github.com/spf13/cast v1.4.0 => v1.4.1 [efebd756](https://github.com/gohugoio/hugo/commit/efebd756eb1f35c515ac82ccc85ec520bac91240) [@bep](https://github.com/bep) [#8891](https://github.com/gohugoio/hugo/issues/8891)
+* Import time/tzdata on Windows [58b6742c](https://github.com/gohugoio/hugo/commit/58b6742cfeb6d4cd04450cbe9592209510c2b977) [@bep](https://github.com/bep) [#8892](https://github.com/gohugoio/hugo/issues/8892)
+* Indent TOML tables [9bba9a3a](https://github.com/gohugoio/hugo/commit/9bba9a3a98fa268391597d8d7a52112fb401d952) [@bep](https://github.com/bep) [#8850](https://github.com/gohugoio/hugo/issues/8850)
+
+## Fixes
+
+### Other
+
+* Fix import order for ./foo when both ./foo.js and ./foo/index.js exists [cf73cc2e](https://github.com/gohugoio/hugo/commit/cf73cc2ececd4e794df09ea382a38ab18960d84e) [@bep](https://github.com/bep) [#8945](https://github.com/gohugoio/hugo/issues/8945)
+* Fix it so disableKinds etc. does not get merged in from theme [f4ffeea7](https://github.com/gohugoio/hugo/commit/f4ffeea71dd3d044a2628bbb5d6634680667398f) [@bep](https://github.com/bep) [#8866](https://github.com/gohugoio/hugo/issues/8866)
+* Fix `lang.FormatPercent` description [d6c8cd77](https://github.com/gohugoio/hugo/commit/d6c8cd771834ae2913658c652e30a9feadc2a7b7) [@salim-b](https://github.com/salim-b) 
diff --git a/content/en/news/0.88.1-relnotes/index.md b/content/en/news/0.88.1-relnotes/index.md
new file mode 100644 (file)
index 0000000..d94e72f
--- /dev/null
@@ -0,0 +1,19 @@
+
+---
+date: 2021-09-04
+title: "Hugo 0.88.1: One Fix"
+description: "This version fixes a release issue introduced in 0.88.0."
+categories: ["Releases"]
+images:
+- images/blog/hugo-bug-poster.png
+
+---
+
+       
+
+This is a bug-fix release with one important fix.
+
+* Bump down again to Go 1.16.7 for the release builds [e1ead4db](https://github.com/gohugoio/hugo/commit/e1ead4dbca4cfb00ec0893c8c8563c91624ecca7) [@bep](https://github.com/bep) [#8952](https://github.com/gohugoio/hugo/issues/8952)[#8955](https://github.com/gohugoio/hugo/issues/8955)
+
+
+
diff --git a/content/en/news/http2-server-push-in-hugo.md b/content/en/news/http2-server-push-in-hugo.md
deleted file mode 100644 (file)
index 28b1f47..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
----
-title: "HTTP/2 Server Push in Hugo"
-date: 2017-07-24T18:36:00+02:00
-description: >
-    As every page in Hugo can be output to multiple formats, it is easy to create Netlify's _redirects and _headers files on the fly.
-categories: [blog]
-keywords: []
-slug: "http2-server-push-in-hugo"
-aliases: []
-author: bep
-images:
-- images/gohugoio-card-1.png
----
-
-**Netlify** recently announced support for [HTTP/2 server push](https://www.netlify.com/blog/2017/07/18/http/2-server-push-on-netlify/), and we have now added it to the **gohugo.io** sites for the main `CSS` and `JS` bundles, along with server-side 301 redirect support.
-
-If you navigate to https://gohugo.io and look in the Chrome developer network console, you should now see `Push` as the new source ("Initiator") for the `CSS` and `JSS`:
-
-{{< figure src="/images/blog/hugo-http2-push.png" caption="Network log for https://gohugo.io" >}}
-
-**Setting up this in Hugo was easy:**
-
-## 1. Configure Netlify Output Formats
-
-Add a new custom media type and two new output formats to `config.toml`. For more on output formats in Hugo, see [Custom Output Formats](/templates/output-formats/).
-
-```toml
-[outputs]
-home = [ "HTML", "RSS", "REDIR", "HEADERS" ]
-
-[mediaTypes]
-[mediaTypes."text/netlify"]
-suffix = ""
-delimiter = ""
-
-[outputFormats]
-[outputFormats.REDIR]
-mediatype = "text/netlify"
-baseName = "_redirects"
-isPlainText = true
-notAlternative = true
-[outputFormats.HEADERS]
-mediatype = "text/netlify"
-baseName = "_headers"
-isPlainText = true
-notAlternative = true
-```
-## 2. Add Template For the _headers File
-
-Add `layouts/index.headers`:
-
-```bash
-/*
-  X-Frame-Options: DENY
-  X-XSS-Protection: 1; mode=block
-  X-Content-Type-Options: nosniff
-  Referrer-Policy: origin-when-cross-origin
-*/
-  Link: <{{ "dist/app.bundle.js" | relURL }}>; rel=preload; as=script
-  Link: <{{ "dist/main.css" | relURL }}>; rel=preload; as=style
-```
-The template above creates both a security header definition and a HTTP/2 server push configuration.
-
-Also note that this is a template for the home page, so the full `Page` with its `Site` and many variables are available. You can also use `partial` to include other templates.
-
-
-## 3. Add Template For the _redirects File
-Add `layouts/index.redir`:
-```bash
-# Netlify redirects. See https://www.netlify.com/docs/redirects/
-{{  range $p := .Site.Pages -}}
-{{ range .Aliases }}
-{{  . | printf "%-35s" }}      {{ $p.RelPermalink -}}
-{{ end -}}
-{{- end -}}
-```
-The template above creates 301 redirects for your [aliases](/content-management/urls/#aliases), so you will probably want to turn off aliases in your `config.toml`: `disableAliases = true`.
-
index 2ec92251e6efb13aac1eed70c52fd2f656ad34e8..df5c7d26e97207382b56c0a6b59862d428b7756f 100644 (file)
@@ -1,8 +1,8 @@
 * A _regular_ page is a "post" page or a "content" page.
   * A _leaf bundle_ is a regular page.
 * A _list_ page can list _regular_ pages and other _list_ pages. Some
-  examples are: homepage, section pages, _taxonomy term_ (`/tags/`) and
-  _taxonomy_ (`/tags/foo/`) pages.
+  examples are: homepage, section pages, _taxonomy_ (`/tags/`) and
+  _term_ (`/tags/foo/`) pages.
   * A _branch bundle_ is a _list_ page.
 
 `.Site.Pages`
index b7d62ec8f1debcb60b9144eb5a1e478f01ef5da7..1b82e9ebf20aa28f087749453721c726bccd808c 100644 (file)
@@ -48,7 +48,7 @@ Your 404.html file can be set to load automatically when a visitor enters a mist
 
 * [GitHub Pages](/hosting-and-deployment/hosting-on-github/) and [GitLab Pages](/hosting-and-deployment/hosting-on-gitlab/). The 404 page is automatic.
 * Apache. You can specify `ErrorDocument 404 /404.html` in an `.htaccess` file in the root of your site.
-* Nginx. You might specify `error_page 404 /404.html;` in your `nginx.conf` file.
+* Nginx. You might specify `error_page 404 /404.html;` in your `nginx.conf` file. [Details here](https://nginx.org/en/docs/http/ngx_http_core_module.html#error_page).
 * Amazon AWS S3. When setting a bucket up for static web serving, you can specify the error file from within the S3 GUI.
 * Amazon CloudFront. You can specify the page in the Error Pages section in the CloudFront Console. [Details here](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html)
 * Caddy Server. Using `errors { 404 /404.html }`. [Details here](https://caddyserver.com/docs/errors)
index 8c57962e726cc1e9af9a09f1c3926093b57d2513..c5fde5b51fe3e1f4f4dec4cd658bd8a90803c69f 100644 (file)
@@ -2,7 +2,6 @@
 title: DEPRECATED - Alternative Templating Languages
 linktitle: Alternative Templating
 description: DEPRECATED - Support for Ace & Amber templating has been removed in version 0.62
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-20
index 990e6fc223ea0d41462801333531e1d06e11b465..f2648bd52da3a5f15b6621f3d537c6d14190d0ce 100644 (file)
@@ -2,7 +2,6 @@
 title: Base Templates and Blocks
 linktitle:
 description: The base and block constructs allow you to define the outer shell of your master templates (i.e., the chrome of the page).
-godocref: https://golang.org/pkg/text/template/#example_Template_block
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index b3edf8f447d6e23aec9256944464fb4b9e767505..c36344776be44e5835169948a55b36e2769c65d1 100644 (file)
@@ -106,7 +106,7 @@ Achievements:
   - "Reads documentation"
 {{</ code-toggle >}}
 
-You can use the following code to render the `Short Description` in your layout::
+You can use the following code to render the `Short Description` in your layout:
 
 ```
 <div>Short Description of {{.Site.Data.User0123.Name}}: <p>{{ index .Site.Data.User0123 "Short Description" | markdownify }}</p></div>
index 28926441b460d74c25e7ea1ce478f300412f6c08..a448d79089f80ba9f30b1c048e2e6d28fc66b86a 100644 (file)
@@ -2,7 +2,6 @@
 title: Local File Templates
 linktitle: Local File Templates
 description: Hugo's `readDir` and `readFile` functions make it easy to traverse your project's directory structure and write file contents to your templates.
-godocref: https://golang.org/pkg/os/#FileInfo
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index fd34842d47cb724cbf14aa2d6601465a06ddecb4..68f04340382043147ffb4db04f8defe7282b2dd2 100644 (file)
@@ -2,7 +2,6 @@
 title: Introduction to Hugo Templating
 linktitle: Introduction
 description: Hugo uses Go's `html/template` and `text/template` libraries as the basis for the templating.
-godocref: https://golang.org/pkg/html/template/
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-25
index 45e4e82e5a52b6f0031d77c591caf779d72112b2..e021c81123474496bf5d0dbe75abd2a4bcd24d96 100644 (file)
@@ -2,7 +2,6 @@
 title: Hugo's Lookup Order
 linktitle: Template Lookup Order
 description: Hugo searches for the layout to use for a given page in a well defined order, starting from the most specific.
-godocref:
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-07-05
index 619ac449e483a23fa083aab1a51f5be1e38e77bd..ca51523de7858e05d1d7171382cfd42616792be0 100644 (file)
@@ -123,6 +123,9 @@ The following is the full list of configuration options for output formats and t
 `permalinkable`
 : make `.Permalink` and `.RelPermalink` return the rendering Output Format rather than main ([see below](#link-to-output-formats)). This is enabled by default for `HTML` and `AMP`. **Default:** `false`.
 
+`weight`
+: Setting this to a non-zero value will be used as the first sort criteria.
+
 ## Output Formats for Pages
 
 A `Page` in Hugo can be rendered to multiple *output formats* on the file
index 888b7ca4270342f851227bcb9b748d05c66ba311..487037bf0381b8201a8ef3743238b38b937a1aa9 100644 (file)
@@ -369,7 +369,7 @@ More shortcode examples can be found in the [shortcodes directory for spf13.com]
 
 ## Inline Shortcodes
 
-{{< new-in "0.52.0" >}}
+{{< new-in "0.52" >}}
 
 Since Hugo 0.52, you can implement your shortcodes inline -- e.g. where you use them in the content file. This can be useful for scripting that you only need in one place.
 
index 419581b903ead7788f1565d0836cb560b8408345..fbe873827653a0f730567626566fba03d127e324 100644 (file)
@@ -2,7 +2,6 @@
 title: Template Debugging
 # linktitle: Template Debugging
 description: You can use Go templates' `printf` function to debug your Hugo  templates. These snippets provide a quick and easy visualization of the variables available to you in different contexts.
-godocref: https://golang.org/pkg/fmt/
 date: 2017-02-01
 publishdate: 2017-02-01
 lastmod: 2017-02-01
index 689a544087a73e77db7af262ed1a7cbe50a22675..3a1aa479ca6edca4ebe2b1bd7cb81b8d06c414c0 100644 (file)
@@ -2,7 +2,6 @@
 title: Base 模板 and Blocks
 linktitle:
 description: The base and block constructs allow you to define the outer shell of your master templates (i.e., the chrome of the page).
-godocref: https://golang.org/pkg/text/template/#example_Template_block
 date: 2017-02-01
 publishdate: 2018-08-11
 lastmod: 2017-02-01
index 9925a57e6e606697b1d203960715b638b373eb25..04916b581ff29eeca3dbec690220c629ccc29d67 100644 (file)
               "-12,346"
             ],
             [
-              "{{ -98765.4321 | lang.NumFmt 2 }}",
+              "{{ -98765.4321 | lang.FormatNumberCustom 2 }}",
               "-98,765.43"
             ]
           ]
         },
         "FormatPercent": {
-          "Description": "FormatPercent formats number with the given precision for the current language.\nNote that the number is assumbed to be percent.",
+          "Description": "FormatPercent formats number with the given precision for the current language.\nNote that the number is assumed to be a percentage.",
           "Args": [
             "precision",
             "number"
index f5a2b5dbe23e8f5bb699a945be83bd67776b1e5f..cde241f0148b3db42bd5afb51c3055da78533d8f 100644 (file)
@@ -12,20 +12,6 @@ quote = "Can't overstate how much I enjoy <a href='https://twitter.com/gohugoio'
 link = "https://twitter.com/jscarto/status/1039648827815485440"
 date = 2018-09-12T00:00:00Z
 
-[[tweet]]
-name = "Jens Munch"
-twitter_handle = "@jensamunch"
-quote = "Hugo is really, really incredible... Now does resizing/resampling of images as well! Crazy that something so fast can be a static site generator... Amazing open-source project."
-link = "https://twitter.com/jensamunch/status/948533063537086464"
-date = 2018-01-03T04:00:00Z
-
-[[tweet]]
-name = "STOQE"
-twitter_handle = "@STOQE"
-quote = "I fear <a href='https://twitter.com/gohugoio' target='_blank'>@GoHugoIO</a> v0.22 might be so fast it creates a code vortex that time-warps me back to a time I used Wordpress. <a href='https://twitter.com/hashtag/gasp?src=hash'>#gasp</a>"
-link = "https://twitter.com/STOQE/status/874184881701494784"
-date = 2017-06-12T00:00:00Z
-
 [[tweet]]
 name = "Christophe Diericx"
 twitter_handle = "@spcrngr_"
index 3a37a3bdf81e627e0d1caabe7afdf95d78432c70..f149edc7ac81c6fe61d516de68e8fbc7b76f39ac 100644 (file)
@@ -3,7 +3,7 @@ publish = "public"
 command = "hugo --gc --minify"
 
 [context.production.environment]
-HUGO_VERSION = "0.86.1"
+HUGO_VERSION = "0.88.1"
 HUGO_ENV = "production"
 HUGO_ENABLEGITINFO = "true"
 
@@ -11,21 +11,25 @@ HUGO_ENABLEGITINFO = "true"
 command = "hugo --gc --minify --enableGitInfo"
 
 [context.split1.environment]
-HUGO_VERSION = "0.86.1"
+HUGO_VERSION = "0.88.1"
 HUGO_ENV = "production"
 
 [context.deploy-preview]
 command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
 
 [context.deploy-preview.environment]
-HUGO_VERSION = "0.86.1"
+HUGO_VERSION = "0.88.1"
 
 [context.branch-deploy]
 command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
 
 [context.branch-deploy.environment]
-HUGO_VERSION = "0.86.1"
+HUGO_VERSION = "0.88.1"
 
 [context.next.environment]
 HUGO_ENABLEGITINFO = "true"
 
+[[redirects]]
+from = "/npmjs/*"
+to = "/npmjs/"
+status = 200
\ No newline at end of file
diff --git a/resources/_gen/images/news/0.87.0-relnotes/featured_hud7315cc4b84c00922361254b17154b9c_104936_480x0_resize_catmullrom_3.png b/resources/_gen/images/news/0.87.0-relnotes/featured_hud7315cc4b84c00922361254b17154b9c_104936_480x0_resize_catmullrom_3.png
new file mode 100644 (file)
index 0000000..46cd224
Binary files /dev/null and b/resources/_gen/images/news/0.87.0-relnotes/featured_hud7315cc4b84c00922361254b17154b9c_104936_480x0_resize_catmullrom_3.png differ
diff --git a/resources/_gen/images/news/0.87.0-relnotes/featured_hud7315cc4b84c00922361254b17154b9c_104936_640x0_resize_catmullrom_3.png b/resources/_gen/images/news/0.87.0-relnotes/featured_hud7315cc4b84c00922361254b17154b9c_104936_640x0_resize_catmullrom_3.png
new file mode 100644 (file)
index 0000000..ecaf9dc
Binary files /dev/null and b/resources/_gen/images/news/0.87.0-relnotes/featured_hud7315cc4b84c00922361254b17154b9c_104936_640x0_resize_catmullrom_3.png differ
diff --git a/resources/_gen/images/news/0.88.0-relnotes/featured_hubd2e74572b88af11154b43148569d005_87331_480x0_resize_catmullrom_3.png b/resources/_gen/images/news/0.88.0-relnotes/featured_hubd2e74572b88af11154b43148569d005_87331_480x0_resize_catmullrom_3.png
new file mode 100644 (file)
index 0000000..31a6263
Binary files /dev/null and b/resources/_gen/images/news/0.88.0-relnotes/featured_hubd2e74572b88af11154b43148569d005_87331_480x0_resize_catmullrom_3.png differ
diff --git a/resources/_gen/images/news/0.88.0-relnotes/featured_hubd2e74572b88af11154b43148569d005_87331_640x0_resize_catmullrom_3.png b/resources/_gen/images/news/0.88.0-relnotes/featured_hubd2e74572b88af11154b43148569d005_87331_640x0_resize_catmullrom_3.png
new file mode 100644 (file)
index 0000000..70ca9d8
Binary files /dev/null and b/resources/_gen/images/news/0.88.0-relnotes/featured_hubd2e74572b88af11154b43148569d005_87331_640x0_resize_catmullrom_3.png differ
diff --git a/static/npmjs/index.html b/static/npmjs/index.html
new file mode 100644 (file)
index 0000000..88dd510
--- /dev/null
@@ -0,0 +1,6 @@
+<html>
+  <head>
+    <meta name="go-import" content="gohugo.io/npmjs mod http://localhost:8072">
+  </head>
+  <body></body>
+</html>