mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-02 19:52:38 +00:00
9301947b25
git-subtree-dir: themes/gohugoioTheme git-subtree-split: 7dd8a302409a20362e4c610798cc19661b336363
6 lines
163 B
HTML
6 lines
163 B
HTML
{{$file := .Get "file"}}
|
|
{{- if eq (.Get "markdown") "true" -}}
|
|
{{- $file | readFile | markdownify -}}
|
|
{{- else -}}
|
|
{{ $file | readFile | safeHTML }}
|
|
{{- end -}} |