shithub: hugo

ref: 337d0c5f516ee085205e8abefdb7f87e6d33ca05
dir: /layouts/shortcodes/readfile.html/

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