diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/_markup/render-link.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/_markup/render-link.html index 9b6cad114..81b2fb46d 100644 --- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/_markup/render-link.html +++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/_markup/render-link.html @@ -98,12 +98,7 @@ either of these shortcodes in conjunction with this render hook. {{- end }} {{- /* Determine content path for warning and error messages. */}} -{{- $contentPath := "" }} -{{- with .Page.File }} - {{- $contentPath = .Path }} -{{- else }} - {{- $contentPath = .Path }} -{{- end }} +{{- $contentPath := print .Page }} {{- /* Parse destination. */}} {{- $u := urls.Parse .Destination }} diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/include.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/include.html index 9ad6e4ecb..cb9c12587 100644 --- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/include.html +++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/shortcodes/include.html @@ -10,7 +10,7 @@ You must call this shortcode using the {{% %}} notation. */}} {{- with .Get 0 }} - {{- with site.GetPage . }} + {{- with or (site.GetPage .) ($.Page.GetPage .) }} {{- .RenderShortcodes }} {{- else }} {{- errorf "The %q shortcode was unable to find %q. See %s" $.Name . $.Position }} diff --git a/_vendor/modules.txt b/_vendor/modules.txt index 5ff5b9db1..65c917c88 100644 --- a/_vendor/modules.txt +++ b/_vendor/modules.txt @@ -1,2 +1 @@ -# github.com/gohugoio/gohugoioTheme v0.0.0-20241119115653-b92d27ede3e1 - +# github.com/gohugoio/gohugoioTheme v0.0.0-20241217120756-d943fd149ebe diff --git a/go.mod b/go.mod index 5e909630f..8c5e8cdcf 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/gohugoio/hugoDocs 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 diff --git a/go.sum b/go.sum index e1863b60e..40a41f94a 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,4 @@ 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-20241217120756-d943fd149ebe h1:+G6k1qjxy7Cx6ZR7RXZmysp5hbFUtlvhhDP3p1VqqxA= +github.com/gohugoio/gohugoioTheme v0.0.0-20241217120756-d943fd149ebe/go.mod h1:GOYeAPQJ/ok8z7oz1cjfcSlsFpXrmx6VkzQ5RpnyhZM=