mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-10 01:11:37 -05:00
layouts: Rename list to section and single to page
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
This commit is contained in:
9
layouts/page.markdown.md
Normal file
9
layouts/page.markdown.md
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ with .File -}}
|
||||
{{ with (.Path | readFile) -}}
|
||||
{{ . -}}
|
||||
{{ else -}}
|
||||
{{ errorf "file not found: %s" .Path -}}
|
||||
{{ end -}}
|
||||
{{ else -}}
|
||||
{{ errorf "no file available for markdown template?" -}}
|
||||
{{ end -}}
|
Reference in New Issue
Block a user