We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3150609 commit c667ab2Copy full SHA for c667ab2
layouts/shortcodes/page-resource-content.md
@@ -4,5 +4,9 @@
4
{{- $markdown = .Get 1 }}
5
{{- end }}
6
{{- with .Page.Resources.Get $name }}
7
- {{- cond $markdown (.Content | $.Page.RenderString) .Content }}
+ {{- if $markdown }}
8
+ {{- .Content | $.Page.RenderString }}
9
+ {{- else }}
10
+ {{- .Content }}
11
+ {{- end }}
12
0 commit comments