mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 20:23:18 -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 }}
|