diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index a4e6d8f..4efb30d 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -13,6 +13,11 @@ taxonomies: markup: # this just keeps the bobatheme markup styling _merge: deep +outputs: + page: + - html + - markdown + params: author: name: bbaovanc diff --git a/layouts/_default/single.markdown.md b/layouts/_default/single.markdown.md new file mode 100644 index 0000000..d8f8dd7 --- /dev/null +++ b/layouts/_default/single.markdown.md @@ -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 -}}