diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index 41a4565..72fe519 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -15,6 +15,9 @@ taxonomies: markup: # this just keeps the bobatheme markup styling _merge: deep +outputs: + _merge: deep + params: author: name: bbaovanc diff --git a/hugo.yaml b/hugo.yaml index f24c261..388022c 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -12,6 +12,11 @@ taxonomies: author: authors series: series +outputs: + page: + - html + - markdown + privacy: googleAnalytics: disable: true 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 -}}