shithub: hugo

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

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