mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 13:33:34 +08:00
include: render shortcodes if file is a page #916
This commit is contained in:
parent
415d3a4c60
commit
c3763a9bb7
@ -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)
|
||||
}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user