From e397df932633258e9b9a247c5fe98bb9a2d0df1e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 24 Jun 2017 20:46:06 +0100 Subject: [PATCH] Add plain-text output for pages --- config.yml | 21 +++++++++++++++++++++ layouts/_default/list.md | 3 +++ layouts/_default/single.md | 3 +++ 3 files changed, 27 insertions(+) create mode 100644 layouts/_default/list.md create mode 100644 layouts/_default/single.md diff --git a/config.yml b/config.yml index 89b5ac3..da400c1 100644 --- a/config.yml +++ b/config.yml @@ -10,6 +10,27 @@ params: nav_items: 5 index_items: 6 +mediaTypes: + text/markdown: + suffix: md +outputFormats: + markdown: + name: "md" + mediaType: "text/markdown" + isPlainText: true +outputs: + home: + - "html" + - "rss" + - "md" + section: + - "html" + - "rss" + - "md" + page: + - "html" + - "md" + staticDir: "static/build" buildDrafts: false diff --git a/layouts/_default/list.md b/layouts/_default/list.md new file mode 100644 index 0000000..aebd892 --- /dev/null +++ b/layouts/_default/list.md @@ -0,0 +1,3 @@ +# {{ .Title | plainify }} + +{{ .RawContent | safeHTML }} diff --git a/layouts/_default/single.md b/layouts/_default/single.md new file mode 100644 index 0000000..aebd892 --- /dev/null +++ b/layouts/_default/single.md @@ -0,0 +1,3 @@ +# {{ .Title | plainify }} + +{{ .RawContent | safeHTML }}