WIP create markdown output template

This commit is contained in:
BBaoVanC 2023-10-21 21:46:52 -05:00
parent a59a87374b
commit 45c7ea7484
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
2 changed files with 14 additions and 0 deletions

View File

@ -13,6 +13,11 @@ taxonomies:
markup: # this just keeps the bobatheme markup styling
_merge: deep
outputs:
page:
- html
- markdown
params:
author:
name: bbaovanc

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