mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-14 08:59:45 +00:00
e781be1620
- Hopefully help explain related issues #217, #194 Close #226
8 lines
No EOL
260 B
HTML
8 lines
No EOL
260 B
HTML
{{$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 -}} |