dashboard
repositories
filestore
activity
search
login
external-software
/
github_gohugo_theme_compose
mirror of
https://github.com/onweru/compose.git
summary
commits
tree
docs
forks
compare
blame
|
history
|
raw
update
weru
04.24.2020
98fd0482bf4e20ab7c3150d2b63a864955a130f5
[external-software/github_gohugo_theme_compose.git]
/
exampleSite
/
compose
/
layouts
/
shortcodes
/
readfile.html
1
2
3
4
5
6
7
8
{{$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 -}}