shithub: hugo

ref: eb738cd35cca1ffc68c5ed688dbe2a19108e8761
dir: /layouts/shortcodes/readfile.html/

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