Upgrade to hugo v0.141.0

This commit is contained in:
Mark Dumay
2025-01-18 15:33:38 +01:00
parent 23ece830e2
commit e75c8cf40f
9 changed files with 19 additions and 16 deletions

View File

@@ -116,7 +116,7 @@ home = ["HTML", "RSS", "REDIR", "netlify", "server"]
[module] [module]
[module.hugoVersion] [module.hugoVersion]
extended = true extended = true
min = "0.136.3" min = "0.141.0"
[[module.mounts]] [[module.mounts]]
source = "archetypes" source = "archetypes"
target = "archetypes" target = "archetypes"

2
go.mod
View File

@@ -13,7 +13,7 @@ require (
github.com/gethinode/mod-leaflet v1.2.1 // indirect github.com/gethinode/mod-leaflet v1.2.1 // indirect
github.com/gethinode/mod-lottie v1.5.13 // indirect github.com/gethinode/mod-lottie v1.5.13 // indirect
github.com/gethinode/mod-simple-datatables v1.1.6 // indirect github.com/gethinode/mod-simple-datatables v1.1.6 // indirect
github.com/gethinode/mod-utils/v2 v2.8.6 // indirect github.com/gethinode/mod-utils/v2 v2.9.0 // indirect
github.com/nextapps-de/flexsearch v0.0.0-20240501124520-961c3ae84a87 // indirect github.com/nextapps-de/flexsearch v0.0.0-20240501124520-961c3ae84a87 // indirect
github.com/twbs/bootstrap v5.3.3+incompatible // indirect github.com/twbs/bootstrap v5.3.3+incompatible // indirect
) )

2
go.sum
View File

@@ -378,6 +378,8 @@ github.com/gethinode/mod-utils/v2 v2.8.5 h1:e71ncO2NYpum7JTdNTwb0lw8aDe8Zc64Ehja
github.com/gethinode/mod-utils/v2 v2.8.5/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY= github.com/gethinode/mod-utils/v2 v2.8.5/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
github.com/gethinode/mod-utils/v2 v2.8.6 h1:gtTtL37YPq1n/POIzbj40aYOg1VaZq8IjqwSf2V5yo0= github.com/gethinode/mod-utils/v2 v2.8.6 h1:gtTtL37YPq1n/POIzbj40aYOg1VaZq8IjqwSf2V5yo0=
github.com/gethinode/mod-utils/v2 v2.8.6/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY= github.com/gethinode/mod-utils/v2 v2.8.6/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
github.com/gethinode/mod-utils/v2 v2.9.0 h1:IGaYO+DNo7CcplyAUJASP1sf10/EqiG8sVVM1Q4SJKc=
github.com/gethinode/mod-utils/v2 v2.9.0/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY=
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo= github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo=
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU= github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU=
github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg= github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg=

View File

@@ -1,11 +1,11 @@
{{ with transform.ToMath .Inner (dict "displayMode" true) }} {{ with try (transform.ToMath .Inner (dict "displayMode" true)) }}
{{ with .Err }} {{ with .Err }}
{{ errorf "Failed to render KaTeX: %q. See %s" . $.Position }} {{ errorf "Failed to render KaTeX: %q. See %s" . $.Position }}
{{ else }} {{ else }}
{{ if $.Attributes.class }} {{ if $.Attributes.class }}
<div class="{{ $.Attributes.class }}">{{ . }}</div> <div class="{{ $.Attributes.class }}">{{ . }}</div>
{{ else }} {{ else }}
{{ . }} {{ .Value }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@@ -4,10 +4,10 @@
{{ $opts = dict "displayMode" true }} {{ $opts = dict "displayMode" true }}
{{ end }} {{ end }}
{{ with transform.ToMath .Inner $opts }} {{ with try (transform.ToMath .Inner $opts) }}
{{ with .Err }} {{ with .Err }}
{{ errorf "Failed to render KaTeX: %q. See %s" . $.Position }} {{ errorf "Failed to render KaTeX: %q. See %s" . $.Position }}
{{ else }} {{ else }}
{{ . }} {{ .Value }}
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@@ -68,11 +68,11 @@
{{ $api := printf "https://www.youtube.com/oembed?format=json&url=%s" (printf "https://www.youtube.com/watch?v=%s" $id) }} {{ $api := printf "https://www.youtube.com/oembed?format=json&url=%s" (printf "https://www.youtube.com/watch?v=%s" $id) }}
{{ $padding := "56.25%" }} {{ $padding := "56.25%" }}
{{ with resources.GetRemote $api }} {{ with try (resources.GetRemote $api) }}
{{ with .Err }} {{ with .Err }}
{{ errorf "Unable to parse video metadata '%q': %s\n %s" $api $origin . }} {{ errorf "Unable to parse video metadata '%q': %s\n %s" $api $origin . }}
{{ else }} {{ else }}
{{ $data := . | transform.Unmarshal }} {{ $data := .Value | transform.Unmarshal }}
{{ if $autotitle }}{{ with $data.title }}{{ $title = . }}{{ end }}{{ end }} {{ if $autotitle }}{{ with $data.title }}{{ $title = . }}{{ end }}{{ end }}
{{ $padding = printf "%.2f%%" (mul (div $data.height $data.width) 100) }} {{ $padding = printf "%.2f%%" (mul (div $data.height $data.width) 100) }}
{{ end }} {{ end }}
@@ -97,11 +97,11 @@
{{- $dnt := cond $pc.EnableDNT 1 0 -}} {{- $dnt := cond $pc.EnableDNT 1 0 -}}
{{- $query := querify "url" $url "dnt" $dnt -}} {{- $query := querify "url" $url "dnt" $dnt -}}
{{- $api := printf "https://vimeo.com/api/oembed.json?%s" $query -}} {{- $api := printf "https://vimeo.com/api/oembed.json?%s" $query -}}
{{- with resources.GetRemote $api -}} {{- with try (resources.GetRemote $api) -}}
{{ with .Err }} {{ with .Err }}
{{ errorf "Unable to parse video metadata '%q': %s\n %s" $api $origin . }} {{ errorf "Unable to parse video metadata '%q': %s\n %s" $api $origin . }}
{{ else }} {{ else }}
{{ $data := . | transform.Unmarshal }} {{ $data := .Value | transform.Unmarshal }}
{{ if $autotitle }}{{ with $data.title }}{{ $title = . }}{{ end }}{{ end }} {{ if $autotitle }}{{ with $data.title }}{{ $title = . }}{{ end }}{{ end }}
{{ $padding = printf "%.2f%%" (mul (div $data.height $data.width) 100) }} {{ $padding = printf "%.2f%%" (mul (div $data.height $data.width) 100) }}
{{ end }} {{ end }}

9
package-lock.json generated
View File

@@ -13,7 +13,7 @@
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"cssnano": "^7.0.6", "cssnano": "^7.0.6",
"cssnano-preset-advanced": "^7.0.6", "cssnano-preset-advanced": "^7.0.6",
"hugo-bin": "0.137.2", "hugo-bin": "0.138.0",
"purgecss-whitelister": "^2.4.0" "purgecss-whitelister": "^2.4.0"
}, },
"devDependencies": { "devDependencies": {
@@ -4172,9 +4172,9 @@
} }
}, },
"node_modules/hugo-bin": { "node_modules/hugo-bin": {
"version": "0.137.2", "version": "0.138.0",
"resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.137.2.tgz", "resolved": "https://registry.npmjs.org/hugo-bin/-/hugo-bin-0.138.0.tgz",
"integrity": "sha512-tnq0BeOEHydDVboO3cVeq4aZ9ejzZA/iabSSuV346cQC8XwKH5rqZlA9xByJmijth4zZDeuvnDRpRVQf8NsHeA==", "integrity": "sha512-WNpW+PQb9MFzZlaQBT354/MMN5/MWMvgQyTSHgIK/w8hfcefpcxklSnPmPXJxOYZNEphwzJ8jgDOwJ606gm0jA==",
"funding": [ "funding": [
{ {
"type": "github", "type": "github",
@@ -4182,6 +4182,7 @@
} }
], ],
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT",
"dependencies": { "dependencies": {
"@xhmikosr/bin-wrapper": "^13.0.5", "@xhmikosr/bin-wrapper": "^13.0.5",
"package-config": "^5.0.0" "package-config": "^5.0.0"

View File

@@ -73,7 +73,7 @@
"autoprefixer": "^10.4.20", "autoprefixer": "^10.4.20",
"cssnano": "^7.0.6", "cssnano": "^7.0.6",
"cssnano-preset-advanced": "^7.0.6", "cssnano-preset-advanced": "^7.0.6",
"hugo-bin": "0.137.2", "hugo-bin": "0.138.0",
"purgecss-whitelister": "^2.4.0" "purgecss-whitelister": "^2.4.0"
}, },
"devDependencies": { "devDependencies": {

View File

@@ -6,7 +6,7 @@ homepage = "https://gethinode.com"
demosite = "https://demo.gethinode.com" demosite = "https://demo.gethinode.com"
tags = ["blog", "documentation", "minimal", "modern", "customizable", "search", "bootstrap"] tags = ["blog", "documentation", "minimal", "modern", "customizable", "search", "bootstrap"]
features = ["security aware", "fast by default", "seo-ready", "development tools", "bootstrap framework", "netlify-ready", "full text search", "page layouts", "versioned documentation"] features = ["security aware", "fast by default", "seo-ready", "development tools", "bootstrap framework", "netlify-ready", "full text search", "page layouts", "versioned documentation"]
min_version = "0.139.0" min_version = "0.141.0"
[author] [author]
name = "Mark Dumay" name = "Mark Dumay"