Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.

Commit b0533c0

Browse files
committed
Fall back go $.Page.GetPage in the include shortcode
1 parent b92d27e commit b0533c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎layouts/shortcodes/include.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/}}
1111

1212
{{- with .Get 0 }}
13-
{{- with site.GetPage . }}
13+
{{- with or (site.GetPage .) ($.Page.GetPage .) }}
1414
{{- .RenderShortcodes }}
1515
{{- else }}
1616
{{- errorf "The %q shortcode was unable to find %q. See %s" $.Name . $.Position }}

0 commit comments

Comments
 (0)