Create markdown output template

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
This commit is contained in:
BBaoVanC 2023-10-21 21:46:52 -05:00
parent e84f334591
commit 91994df910
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
3 changed files with 17 additions and 0 deletions

View File

@ -15,6 +15,9 @@ taxonomies:
markup: # this just keeps the bobatheme markup styling markup: # this just keeps the bobatheme markup styling
_merge: deep _merge: deep
outputs:
_merge: deep
params: params:
author: author:
name: bbaovanc name: bbaovanc

View File

@ -12,6 +12,11 @@ taxonomies:
author: authors author: authors
series: series series: series
outputs:
page:
- html
- markdown
privacy: privacy:
googleAnalytics: googleAnalytics:
disable: true disable: true

View 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 -}}