shithub: hugo

ref: 5cb4e46cfa65bddae8ac5344540e3dd1e4c266b2
dir: /themes/gohugoioTheme/layouts/shortcodes/readfile.html/

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