mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-02-21 06:13:53 -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
|
markup: # this just keeps the bobatheme markup styling
|
||||||
_merge: deep
|
_merge: deep
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
page:
|
||||||
|
- html
|
||||||
|
- markdown
|
||||||
|
|
||||||
params:
|
params:
|
||||||
author:
|
author:
|
||||||
name: bbaovanc
|
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…
x
Reference in New Issue
Block a user