mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-08-04 04:58:55 -04:00
Update theme
This commit is contained in:
parent
b63ef69f5b
commit
431b65d6bb
@ -22,8 +22,15 @@
|
|||||||
{{ $releases = where $releases "draft" false }}
|
{{ $releases = where $releases "draft" false }}
|
||||||
{{ $releases = where $releases "prerelease" false }}
|
{{ $releases = where $releases "prerelease" false }}
|
||||||
{{ range $releases | first 20 }}
|
{{ 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
|
{{ $ctx := dict
|
||||||
"Date" (.published_at | time.AsTime)
|
"Date" $publishDate
|
||||||
"Title" (printf "Release %s" .name)
|
"Title" (printf "Release %s" .name)
|
||||||
"Permalink" .html_url
|
"Permalink" .html_url
|
||||||
"Section" "news"
|
"Section" "news"
|
||||||
|
@ -21,14 +21,21 @@
|
|||||||
{{- $releases = where $releases "draft" false }}
|
{{- $releases = where $releases "draft" false }}
|
||||||
{{- $releases = where $releases "prerelease" false }}
|
{{- $releases = where $releases "prerelease" false }}
|
||||||
{{- range $releases | first 20 }}
|
{{- 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
|
{{- $summary := printf
|
||||||
"Hugo %s was released on %s. See [release notes](%s) for details."
|
"Hugo %s was released on %s. See [release notes](%s) for details."
|
||||||
.tag_name
|
.tag_name
|
||||||
(.published_at | time.AsTime | time.Format "2 Jan 2006")
|
($publishDate | time.AsTime | time.Format "2 Jan 2006")
|
||||||
.html_url
|
.html_url
|
||||||
}}
|
}}
|
||||||
{{- $ctx := dict
|
{{- $ctx := dict
|
||||||
"PublishDate" (.published_at | time.AsTime)
|
"PublishDate" $publishDate
|
||||||
"Title" (printf "Release %s" .name)
|
"Title" (printf "Release %s" .name)
|
||||||
"Permalink" .html_url
|
"Permalink" .html_url
|
||||||
"Section" "news"
|
"Section" "news"
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<h2>{{ $heading }}</h2>
|
<h2>{{ $heading }}</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{{- range . }}
|
{{- range . }}
|
||||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -1 +1 @@
|
|||||||
# github.com/gohugoio/gohugoioTheme v0.0.0-20241105120803-6c6e5fb8f8af
|
# github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1
|
||||||
|
4
go.mod
4
go.mod
@ -1,5 +1,5 @@
|
|||||||
module github.com/gohugoio/hugoDocs
|
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
|
||||||
|
6
go.sum
6
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-20241119115653-b92d27ede3e1 h1:d6XNQ4QYvJGIE8vMejUFTD89AWaPDywcLivzWpEU0qE=
|
||||||
github.com/gohugoio/gohugoioTheme v0.0.0-20241105040910-e9dac9458255/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
|
github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1/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=
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user