mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-11-13 20:05:58 -06:00
WIP create markdown output template
This commit is contained in:
parent
a59a87374b
commit
45c7ea7484
@ -13,6 +13,11 @@ taxonomies:
|
||||
markup: # this just keeps the bobatheme markup styling
|
||||
_merge: deep
|
||||
|
||||
outputs:
|
||||
page:
|
||||
- html
|
||||
- markdown
|
||||
|
||||
params:
|
||||
author:
|
||||
name: bbaovanc
|
||||
|
9
layouts/_default/single.markdown.md
Normal file
9
layouts/_default/single.markdown.md
Normal 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 -}}
|
Loading…
Reference in New Issue
Block a user