Compare commits

...

1 Commits

Author SHA1 Message Date
BBaoVanC 2ca8d0bde4
WIP create markdown output template 2023-10-21 21:46:52 -05:00
2 changed files with 14 additions and 0 deletions

View File

@ -16,6 +16,11 @@ author:
markup: # this just keeps the bobatheme markup styling
_merge: deep
outputs:
page:
- html
- markdown
params:
# these are for the OpenGraph/Twitter embeds in Hugo
description: Example website for bobatheme

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