mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 17:12:07 -05:00
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 -}}
|