bobatheme/layouts/_default/single.markdown.md

10 lines
218 B
Markdown
Raw Normal View History

2023-10-21 21:46:52 -05:00
{{ with .File -}}
{{ with (.Path | readFile) -}}
{{ . -}}
{{ else -}}
{{ errorf "file not found: %s" .Path -}}
{{ end -}}
{{ else -}}
{{ errorf "no file available for markdown template?" -}}
{{ end -}}