mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 10:50:24 +00:00
include: render shortcodes if file is a page #916
This commit is contained in:
parent
415d3a4c60
commit
c3763a9bb7
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue