shithub: hugo

Download patch

ref: 3553fc533a868d0303214e3ae53558e23d09b438
parent: 173187e2633f3fc037c83e1e3de2902ae3c93b92
parent: 9cabb46f68bae01aeb1859727dcb21e8a10f5ec7
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Fri Oct 30 05:50:15 EDT 2020

Merge commit '9cabb46f68bae01aeb1859727dcb21e8a10f5ec7'

--- a/docs/content/en/content-management/cross-references.md
+++ b/docs/content/en/content-management/cross-references.md
@@ -77,9 +77,9 @@
 
 Get the permalink to a heading by appending the ID to the path when using the `ref` or `relref` shortcodes:
 
-```md
-{{</* ref "document.md#reference */>}}
-{{</* relref "document.md#reference */>}}
+```go-html-template
+{{</* ref "document.md#reference" */>}}
+{{</* relref "document.md#reference" */>}}
 ```
 
 Generate a custom heading ID by including an attribute. For example:
--- a/docs/content/en/content-management/front-matter.md
+++ b/docs/content/en/content-management/front-matter.md
@@ -182,7 +182,7 @@
 Keywords available for `_target`:
 
 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.
+: 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}".
--- a/docs/content/en/content-management/multilingual.md
+++ b/docs/content/en/content-management/multilingual.md
@@ -360,7 +360,7 @@
 
 ### Query a singular/plural translation
 
-In other to meet singular/plural requirement, you must pass a dictionary (map) data with a numeric `.Count` property to the `i18n` function. The below example uses `.ReadingTime` variable which has a built-in `.Count` property.
+In order to meet singular/plural requirement, you must pass a dictionary (map) with a numeric `.Count` property to the `i18n` function. The below example uses `.ReadingTime` variable which has a built-in `.Count` property.
 
 ```
 {{ i18n "readingTime" .ReadingTime }}
@@ -374,7 +374,7 @@
 other = "{{.Count}} minutes to read"
 ```
 
-Assume `.ReadingTime.Count` in the context has value is 525600. The result will be:
+Assume `.ReadingTime.Count` in the context has value of 525600. The result will be:
 
 ```
 525600 minutes to read
@@ -386,7 +386,7 @@
 One minutes to read
 ```
 
-In case you need to pass a custom data: (`"(dict Count" 25)` is minimum requirment)
+In case you need to pass custom data: (`(dict "Count" 25)` is minimum requirement)
 
 ```
 {{ i18n "readingTime" (dict "Count" 25 "FirstArgument" true "SecondArgument" false "Etc" "so on, so far") }}
--- a/docs/content/en/content-management/taxonomies.md
+++ b/docs/content/en/content-management/taxonomies.md
@@ -192,7 +192,7 @@
 Currently taxonomies only support the [default `weight => date` ordering of list content](/templates/lists/#default-weight-date). For more information, see the documentation on [taxonomy templates](/templates/taxonomy-templates/).
 {{% /note %}}
 
-## Add custom metadata a Taxonomy or Term
+## Add custom metadata to a Taxonomy or Term
 
 If you need to add custom metadata to your taxonomy terms, you will need to create a page for that term at `/content/<TAXONOMY>/<TERM>/_index.md` and add your metadata in it's front matter. Continuing with our 'Actors' example, let's say you want to add a Wikipedia page link to each actor. Your terms pages would be something like this:
 
--- a/docs/content/en/functions/strings.Repeat.md
+++ b/docs/content/en/functions/strings.Repeat.md
@@ -1,7 +1,7 @@
 ---
 title: strings.Repeat
 # linktitle:
-description: Returns a string consisting of count copies of the string s.
+description: Returns INPUT repeated COUNT times.
 godocref:
 date: 2018-05-31
 publishdate: 2018-05-31
@@ -11,7 +11,7 @@
   docs:
     parent: "functions"
 keywords: [strings]
-signature: ["strings.Repeat INPUT COUNT"]
+signature: ["strings.Repeat COUNT INPUT"]
 workson: []
 hugoversion:
 relatedfuncs: []
@@ -18,14 +18,7 @@
 deprecated: false
 ---
 
-`strings.Repeat` provides the Go [`strings.Repeat`](https://golang.org/pkg/strings/#Repeat) function for Hugo templates. It takes a string and a count, and returns a string with consisting of count copies of the string argument.
-
 ```
-{{ strings.Repeat "yo" 3 }} → "yoyoyo"
-```
-
-`strings.Repeat` *requires* the second argument, which tells the function how many times to repeat the first argument; there is no default. However, it can be used as a pipeline:
-
-```
+{{ strings.Repeat 3 "yo" }} → "yoyoyo"
 {{ "yo" | strings.Repeat 3 }} → "yoyoyo"
 ```
binary files /dev/null b/docs/content/en/news/0.76.0-relnotes/featured.png differ
--- a/docs/content/en/news/0.76.0-relnotes/index.md
+++ b/docs/content/en/news/0.76.0-relnotes/index.md
@@ -1,12 +1,12 @@
 
 ---
 date: 2020-10-06
-title: "0.76.0"
-description: "0.76.0"
+title: "Multiple Cascades With Page Filters"
+description: "Hugo 0.76.0 brings multiple cascade blocks per page with filters for path, kind and language."
 categories: ["Releases"]
 ---
 
-	In **Hugo 0.76.0** you can now have a list of [cascade](https://gohugo.io/content-management/front-matter#front-matter-cascade) blocks per page and a new `_target` keyword where you can select which pages to _cascade_ upon using [Glob](https://github.com/gobwas/glob) patterns for a `Page`'s `Kind`, `Lang` and/or `Path`:
+In **Hugo 0.76.0** you can now have a list of [cascade](https://gohugo.io/content-management/front-matter#front-matter-cascade) blocks per page and a new `_target` keyword where you can select which pages to _cascade_ upon using [Glob](https://github.com/gobwas/glob) patterns for a `Page`'s `Kind`, `Lang` and/or `Path`:
 
 ```toml
 title ="Blog"
@@ -26,7 +26,7 @@
 
 A related improvement is that the [build option](https://gohugo.io/content-management/build-options/#readout) `render` is now an enum. In addition to turning on/off rendering of a given page you can tell Hugo to not render, but you want to preserve the `.Permalink`, useful for SPA applications.
 
-This release represents **35 contributions by 8 contributors** to the main Hugo code base.[@dependabot[bot]](https://github.com/apps/dependabot) leads the Hugo development with a significant amount of contributions, but also a big shoutout to [@bep](https://github.com/bep), [@ai](https://github.com/ai), and [@jmooring](https://github.com/jmooring) for their ongoing contributions.
+This release represents **35 contributions by 8 contributors** to the main Hugo code base. A big shoutout to [@bep](https://github.com/bep), [@ai](https://github.com/ai), and [@jmooring](https://github.com/jmooring) for their ongoing contributions.
 And a big thanks to [@digitalcraftsman](https://github.com/digitalcraftsman) for his relentless work on keeping the themes site in pristine condition and to [@davidsneighbour](https://github.com/davidsneighbour), [@coliff](https://github.com/coliff) and [@kaushalmodi](https://github.com/kaushalmodi) for all the great work on the documentation site.
 
 Many have also been busy writing and fixing the documentation in [hugoDocs](https://github.com/gohugoio/hugoDocs), 
--- a/docs/content/en/news/0.76.1-relnotes/index.md
+++ b/docs/content/en/news/0.76.1-relnotes/index.md
@@ -1,8 +1,8 @@
 
 ---
 date: 2020-10-07
-title: "Hugo 0.76.1: A couple of Bug Fixes"
-description: "This version fixes a couple of bugs introduced in 0.76.0."
+title: "Hugo 0.76.1: One Bug Fix"
+description: "This version fixes one bug introduced in 0.76.0."
 categories: ["Releases"]
 images:
 - images/blog/hugo-bug-poster.png
@@ -9,12 +9,9 @@
 
 ---
 
-	
+With this, we should finally have proper [plural numerals in Russian etc.](https://discourse.gohugo.io/t/0-76-0-i18n-gone-wrong/28689/7?u=bep):
 
-This is a bug-fix release with a couple of important fixes.
-
 * langs/i18n: Fix i18n .Count regression [f9e798e8](https://github.com/gohugoio/hugo/commit/f9e798e8c4234bd60277e3cb10663ba254d4ecb7) [@bep](https://github.com/bep) [#7787](https://github.com/gohugoio/hugo/issues/7787)
-* Fix typo in 0.76.0 release note [ee56efff](https://github.com/gohugoio/hugo/commit/ee56efffcb3f81120b0d3e0297b4fb5966124354) [@digitalcraftsman](https://github.com/digitalcraftsman) 
 
 
 
--- a/docs/content/en/news/0.76.2-relnotes/index.md
+++ b/docs/content/en/news/0.76.2-relnotes/index.md
@@ -1,15 +1,13 @@
 
 ---
 date: 2020-10-07
-title: "Hugo 0.76.2: A couple of Bug Fixes"
-description: "This version fixes a couple of bugs introduced in 0.76.0."
+title: "Hugo 0.76.2: One Bug Fix"
+description: "This release reverts to an older (and working) version of the JS minifier."
 categories: ["Releases"]
 images:
 - images/blog/hugo-bug-poster.png
 
 ---
-
-	
 
 This is a bug-fix release with one important fix.
 
--- a/docs/content/en/news/0.76.4-relnotes/index.md
+++ b/docs/content/en/news/0.76.4-relnotes/index.md
@@ -1,8 +1,8 @@
 
 ---
 date: 2020-10-12
-title: "Hugo 0.76.4: A couple of Bug Fixes"
-description: "This version fixes a couple of bugs introduced in 0.76.0."
+title: "Hugo 0.76.4: One Bug Fix"
+description: "This version fixes one more i18n regression from 0.76.0."
 categories: ["Releases"]
 images:
 - images/blog/hugo-bug-poster.png
--- a/docs/content/en/showcase/hartwell-insurance/index.md
+++ b/docs/content/en/showcase/hartwell-insurance/index.md
@@ -30,7 +30,7 @@
 
 For the ripple effects on the section headings, I used JS to prepend a `<canvas>` element then animated it with `RequestAnimationFrame`. It adds a nice bit of movement on the page.
 
-On the [Hartwell Profitmaker](https://www.hartwell-insurance.com/profitmaker/) section, I toyed with the idea of using Vue.js for the calculator, but after giving it some thought, I decided to code in Vanilla. The result, all of the site JS comes in at 3.2KB!
+On the Hartwell Profitmaker section, I toyed with the idea of using Vue.js for the calculator, but after giving it some thought, I decided to code in Vanilla. The result, all of the site JS comes in at 3.2KB!
 
 The plan was to host with Netlify and therefore get access to Netlify Forms. It meant spending 0 minutes on getting a backend set up – I could focus fully on the frontend.
 
--- a/docs/content/en/tools/starter-kits.md
+++ b/docs/content/en/tools/starter-kits.md
@@ -32,7 +32,7 @@
 
 
 [addkit]: https://github.com/gohugoio/hugo/edit/master/docs/content/en/tools/starter-kits.md
-[amp]: https://www.ampproject.org/
+[amp]: https://amp.dev
 [Blaupause]: https://github.com/fspoettel/blaupause
 [GOHUGO AMP]: https://github.com/wildhaber/gohugo-amp
 [gohugodocs]: https://gohugo-amp.gohugohq.com/
--- a/docs/content/en/variables/page.md
+++ b/docs/content/en/variables/page.md
@@ -121,7 +121,7 @@
 : the Page content stripped of HTML as a `[]string` using Go's [`strings.Fields`](https://golang.org/pkg/strings/#Fields) to split `.Plain` into a slice.
 
 .Prev
-: Points down to the previous [regular page](/variables/site/#site-pages) (sorted by Hugo's [default sort](/templates/lists#default-weight-date-linktitle-filepath)). Example: `{{if .PrevPage}}{{.PrevPage.Permalink}}{{end}}`.  Calling `.Prev` from the last page returns `nil`.
+: Points down to the previous [regular page](/variables/site/#site-pages) (sorted by Hugo's [default sort](/templates/lists#default-weight-date-linktitle-filepath)). Example: `{{if .Prev}}{{.Prev.Permalink}}{{end}}`.  Calling `.Prev` from the last page returns `nil`.
 
 .PrevInSection
 : Points down to the previous [regular page](/variables/site/#site-pages) below the same top level section (e.g. `/blog`). Pages are sorted by Hugo's [default sort](/templates/lists#default-weight-date-linktitle-filepath). Example: `{{if .PrevInSection}}{{.PrevInSection.Permalink}}{{end}}`.  Calling `.PrevInSection` from the last page returns `nil`.
--- a/docs/netlify.toml
+++ b/docs/netlify.toml
@@ -3,7 +3,7 @@
 command = "hugo --gc --minify"
 
 [context.production.environment]
-HUGO_VERSION = "0.75.1"
+HUGO_VERSION = "0.76.5"
 HUGO_ENV = "production"
 HUGO_ENABLEGITINFO = "true"
 
@@ -11,7 +11,7 @@
 command = "hugo --gc --minify --enableGitInfo"
 
 [context.split1.environment]
-HUGO_VERSION = "0.75.1"
+HUGO_VERSION = "0.76.5"
 HUGO_ENV = "production"
 
 [context.deploy-preview]
@@ -18,13 +18,13 @@
 command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
 
 [context.deploy-preview.environment]
-HUGO_VERSION = "0.75.1"
+HUGO_VERSION = "0.76.5"
 
 [context.branch-deploy]
 command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
 
 [context.branch-deploy.environment]
-HUGO_VERSION = "0.75.1"
+HUGO_VERSION = "0.76.5"
 
 [context.next.environment]
 HUGO_ENABLEGITINFO = "true"
binary files /dev/null b/docs/resources/_gen/images/news/0.76.0-relnotes/featured_hu7b6a8a3a3ee53d378fbcd68c5150e8db_146539_480x0_resize_catmullrom_2.png differ
binary files /dev/null b/docs/resources/_gen/images/news/0.76.0-relnotes/featured_hu7b6a8a3a3ee53d378fbcd68c5150e8db_146539_640x0_resize_catmullrom_2.png differ