diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.html index a41e45a2c..113e63973 100644 --- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.html +++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.html @@ -22,8 +22,15 @@ {{ $releases = where $releases "draft" false }} {{ $releases = where $releases "prerelease" false }} {{ range $releases | first 20 }} + {{ $publishDate := .published_at | time.AsTime }} + + {{/* Correct the v0.138.0 release date. See https://github.com/gohugoio/hugo/issues/13066. */}} + {{ if eq .name "v0.138.0" }} + {{ $publishDate = "2024-11-06T11:22:34Z" | time.AsTime }} + {{ end }} + {{ $ctx := dict - "Date" (.published_at | time.AsTime) + "Date" $publishDate "Title" (printf "Release %s" .name) "Permalink" .html_url "Section" "news" diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.xml b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.xml index 40bca59eb..26b1217d0 100644 --- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.xml +++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/news/list.xml @@ -21,14 +21,21 @@ {{- $releases = where $releases "draft" false }} {{- $releases = where $releases "prerelease" false }} {{- range $releases | first 20 }} + {{- $publishDate := .published_at | time.AsTime }} + + {{- /* Correct the v0.138.0 release date. See https://github.com/gohugoio/hugo/issues/13066. */}} + {{- if eq .name "v0.138.0" }} + {{- $publishDate = "2024-11-06T11:22:34Z" | time.AsTime }} + {{- end }} + {{- $summary := printf "Hugo %s was released on %s. See [release notes](%s) for details." .tag_name - (.published_at | time.AsTime | time.Format "2 Jan 2006") + ($publishDate | time.AsTime | time.Format "2 Jan 2006") .html_url }} {{- $ctx := dict - "PublishDate" (.published_at | time.AsTime) + "PublishDate" $publishDate "Title" (printf "Release %s" .name) "Permalink" .html_url "Section" "news" diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/related.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/related.html index ff7435668..53995a486 100644 --- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/related.html +++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/related.html @@ -16,7 +16,7 @@

{{ $heading }}

{{- end }} diff --git a/_vendor/modules.txt b/_vendor/modules.txt index 0a5950790..026f7b129 100644 --- a/_vendor/modules.txt +++ b/_vendor/modules.txt @@ -1 +1 @@ -# github.com/gohugoio/gohugoioTheme v0.0.0-20241105120803-6c6e5fb8f8af +# github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1 diff --git a/go.mod b/go.mod index a9d63af19..bbb166127 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/gohugoio/hugoDocs -go 1.16 +go 1.23.3 -require github.com/gohugoio/gohugoioTheme v0.0.0-20241105120803-6c6e5fb8f8af // indirect +require github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1 // indirect diff --git a/go.sum b/go.sum index 5c0e10736..e1863b60e 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,2 @@ -github.com/gohugoio/gohugoioTheme v0.0.0-20241105040910-e9dac9458255 h1:kaSc7cVAifWPRzmECr7il0YXgXBM+H2ZrGcNnb03S8k= -github.com/gohugoio/gohugoioTheme v0.0.0-20241105040910-e9dac9458255/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM= -github.com/gohugoio/gohugoioTheme v0.0.0-20241105120803-6c6e5fb8f8af h1:H8Oa4AEJs2yz8w1Gq9hEGBJNukkKo05OAaIEsHMd63k= -github.com/gohugoio/gohugoioTheme v0.0.0-20241105120803-6c6e5fb8f8af/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM= +github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1 h1:d6XNQ4QYvJGIE8vMejUFTD89AWaPDywcLivzWpEU0qE= +github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=