From c3763a9bb73cc8b5e8091e43d1a493729fa6d8eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 15 Sep 2024 00:30:29 +0200 Subject: [PATCH] include: render shortcodes if file is a page #916 --- layouts/partials/shortcodes/include.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/shortcodes/include.html b/layouts/partials/shortcodes/include.html index f8d19a1963..0010a3a91a 100644 --- a/layouts/partials/shortcodes/include.html +++ b/layouts/partials/shortcodes/include.html @@ -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) }}