diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index 61047a9..1053812 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -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 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 -}}