diff --git a/layouts/partials/_relearn/decoratedLink.gotmpl b/layouts/partials/_relearn/decoratedLink.gotmpl index 666fe8d91b..797c804da5 100644 --- a/layouts/partials/_relearn/decoratedLink.gotmpl +++ b/layouts/partials/_relearn/decoratedLink.gotmpl @@ -1,7 +1,13 @@ {{- $u := urls.Parse .url }} {{- $hideFilepath := .hideFilepath | default false }} {{- $type := printf "%T" .linkObject }} -{{- $isPage := eq $type "*hugolib.pageState" }} +{{- $isPage := or + (eq $type "*hugolib.pageForRenderHooks") + (eq $type "*hugolib.pageForShortcode") + (eq $type "*hugolib.pageState") + (eq $type "*hugolib.pageWithOrdinal") + (eq $type "*hugolib.pageWithWeight0") +}} {{- $href := partial "permalink.gotmpl" (dict "to" .linkObject) }} {{- if $isPage }} {{- $format := $u.Query.Get "format" }} diff --git a/layouts/partials/version.txt b/layouts/partials/version.txt index c3d53db5a3..233149720c 100644 --- a/layouts/partials/version.txt +++ b/layouts/partials/version.txt @@ -1 +1 @@ -7.5.0+566c17d000a04bc3d189525bfb8d2ea06dcfe71d \ No newline at end of file +7.5.0+b89d1e3fb63c72c28f83bda3ef08bdca7723066c \ No newline at end of file