diff options
Diffstat (limited to 'layouts/shortcodes/readfile.html')
-rw-r--r-- | layouts/shortcodes/readfile.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/layouts/shortcodes/readfile.html b/layouts/shortcodes/readfile.html new file mode 100644 index 0000000..6860b0f --- /dev/null +++ b/layouts/shortcodes/readfile.html @@ -0,0 +1,6 @@ +{{$file := .Get "file"}} +{{- if eq (.Get "markdown") "true" -}} +{{- $file | readFile | markdownify -}} +{{- else -}} +{{ $file | readFile | safeHTML }} +{{- end -}} |