mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
18 lines
326 B
HTML
18 lines
326 B
HTML
{{ $path := "" }}
|
|
{{ $markdown := false }}
|
|
{{ if .IsNamedParams }}
|
|
{{ $path = .Get "path" }}
|
|
{{ with .Get "markdown" }}
|
|
{{ $markdown = . }}
|
|
{{ end }}
|
|
{{ else }}
|
|
{{ $path = .Get 0 }}
|
|
{{ end }}
|
|
|
|
|
|
{{ if $markdown }}
|
|
{{ $path | readFile | markdownify }}
|
|
{{ else }}
|
|
{{ $path | readFile }}
|
|
{{ end }}
|