Update theme

This commit is contained in:
Bjørn Erik Pedersen 2024-12-17 13:09:57 +01:00
parent ff0a358d3b
commit 9884425f98
No known key found for this signature in database
5 changed files with 6 additions and 10 deletions

View File

@ -98,12 +98,7 @@ either of these shortcodes in conjunction with this render hook.
{{- end }} {{- end }}
{{- /* Determine content path for warning and error messages. */}} {{- /* Determine content path for warning and error messages. */}}
{{- $contentPath := "" }} {{- $contentPath := print .Page }}
{{- with .Page.File }}
{{- $contentPath = .Path }}
{{- else }}
{{- $contentPath = .Path }}
{{- end }}
{{- /* Parse destination. */}} {{- /* Parse destination. */}}
{{- $u := urls.Parse .Destination }} {{- $u := urls.Parse .Destination }}

View File

@ -10,7 +10,7 @@ You must call this shortcode using the {{% %}} notation.
*/}} */}}
{{- with .Get 0 }} {{- with .Get 0 }}
{{- with site.GetPage . }} {{- with or (site.GetPage .) ($.Page.GetPage .) }}
{{- .RenderShortcodes }} {{- .RenderShortcodes }}
{{- else }} {{- else }}
{{- errorf "The %q shortcode was unable to find %q. See %s" $.Name . $.Position }} {{- errorf "The %q shortcode was unable to find %q. See %s" $.Name . $.Position }}

View File

@ -1,2 +1 @@
# github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1 # github.com/gohugoio/gohugoioTheme v0.0.0-20241217120756-d943fd149ebe

2
go.mod
View File

@ -2,4 +2,4 @@ module github.com/gohugoio/hugoDocs
go 1.22.0 go 1.22.0
require github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1 // indirect require github.com/gohugoio/gohugoioTheme v0.0.0-20241217120756-d943fd149ebe // indirect

2
go.sum
View File

@ -1,2 +1,4 @@
github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1 h1:d6XNQ4QYvJGIE8vMejUFTD89AWaPDywcLivzWpEU0qE= 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= github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=
github.com/gohugoio/gohugoioTheme v0.0.0-20241217120756-d943fd149ebe h1:+G6k1qjxy7Cx6ZR7RXZmysp5hbFUtlvhhDP3p1VqqxA=
github.com/gohugoio/gohugoioTheme v0.0.0-20241217120756-d943fd149ebe/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=