diff options
Diffstat (limited to 'docs/layouts/shortcodes/readfile.html')
-rw-r--r-- | docs/layouts/shortcodes/readfile.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/layouts/shortcodes/readfile.html b/docs/layouts/shortcodes/readfile.html index f5b3459bf..f777abe26 100644 --- a/docs/layouts/shortcodes/readfile.html +++ b/docs/layouts/shortcodes/readfile.html @@ -1 +1,6 @@ -{{- .Get 0 | readFile -}} +{{$file := .Get "file"}} +{{- if eq (.Get "markdown") "true" -}} +{{- $file | readFile | markdownify -}} +{{- else -}} +{{ $file | readFile | safeHTML }} +{{- end -}}
\ No newline at end of file |