mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-24 18:01:57 +00:00
4c220c4ac2
Fixes #3709
6 lines
No EOL
163 B
HTML
6 lines
No EOL
163 B
HTML
{{$file := .Get "file"}}
|
|
{{- if eq (.Get "markdown") "true" -}}
|
|
{{- $file | readFile | markdownify -}}
|
|
{{- else -}}
|
|
{{ $file | readFile | safeHTML }}
|
|
{{- end -}} |