mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-17 13:25:57 -06:00
BBaoVanC
91994df910
Further progress is blocked by Hugo feature requests: - https://discourse.gohugo.io/t/render-alternative-output-format-outside-of-leaf-bundle-subdirectory/46968 - https://github.com/gohugoio/hugo/issues/8927
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 -}}
|