mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-28 16:17:30 -05:00
See https://gohugo.io/templates/new-templatesystem-overview/ Under layouts/ - mv _default/* . - mv partials _partials - mv shortcodes _shortcodes - mv taxonomy/list.html taxonomy.html - mv taxonomy/term.html term.html
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 -}}
|