hugo/docs/layouts/shortcodes/readfile.html
2017-07-18 10:33:58 +02:00

6 lines
No EOL
163 B
HTML

{{$file := .Get "file"}}
{{- if eq (.Get "markdown") "true" -}}
{{- $file | readFile | markdownify -}}
{{- else -}}
{{ $file | readFile | safeHTML }}
{{- end -}}