mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-09-08 18:51:04 -05:00
18 lines
358 B
HTML
18 lines
358 B
HTML
{{ $path := "" }}
|
|
{{ $markdown := false }}
|
|
{{ if .IsNamedParams }}
|
|
{{ $path = .Get "path" }}
|
|
{{ with .Get "markdown" }}
|
|
{{ $markdown = . }}
|
|
{{ end }}
|
|
{{ else }}
|
|
{{ $path = .Get 0 }}
|
|
{{ end }}
|
|
|
|
|
|
{{ if $markdown }}
|
|
{{ $path | readFile | .Page.RenderString (dict "display" "block") }}
|
|
{{ else }}
|
|
{{ $path | readFile }}
|
|
{{ end }}
|