include: render shortcodes if file is a page #916

This commit is contained in:
Sören Weber 2024-09-15 00:30:29 +02:00
parent 415d3a4c60
commit c3763a9bb7
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -9,6 +9,9 @@
{{- with or
($page.Page.GetPage $path)
($page.Page.GetPage (strings.TrimRight "/" $path))
}}
{{- $content = .RenderShortcodes }}
{{- else with or
($page.Page.Resources.Get $path)
(resources.Get $path)
}}