readfile.html (163B)
1 {{$file := .Get "file"}} 2 {{- if eq (.Get "markdown") "true" -}} 3 {{- $file | readFile | markdownify -}} 4 {{- else -}} 5 {{ $file | readFile | safeHTML }} 6 {{- end -}}
Fork of github.com/gohugoio/hugo with reverse pagination support
git clone git://git.shimmy1996.com/hugo.git
1 {{$file := .Get "file"}} 2 {{- if eq (.Get "markdown") "true" -}} 3 {{- $file | readFile | markdownify -}} 4 {{- else -}} 5 {{ $file | readFile | safeHTML }} 6 {{- end -}}