shithub: hugo

ref: 910d81a6927c30ad1126c1bfaab1155b970f6442
dir: /docs/layouts/shortcodes/readfile.html/

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