mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-07 00:01:37 -05:00
This makes them more specific. For example, section.html can't accidentally be a fallback for taxonomy.html, and page.html can't for term.html. Fixes #88
10 lines
218 B
Markdown
10 lines
218 B
Markdown
{{ with .File -}}
|
|
{{ with (.Path | readFile) -}}
|
|
{{ . -}}
|
|
{{ else -}}
|
|
{{ errorf "file not found: %s" .Path -}}
|
|
{{ end -}}
|
|
{{ else -}}
|
|
{{ errorf "no file available for markdown template?" -}}
|
|
{{ end -}}
|