1
Fork 0

Add plain-text output for pages

This commit is contained in:
Jake Howard 2017-06-24 20:46:06 +01:00
parent 303c15265e
commit e397df9326
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 27 additions and 0 deletions

View file

@ -10,6 +10,27 @@ params:
nav_items: 5 nav_items: 5
index_items: 6 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" staticDir: "static/build"
buildDrafts: false buildDrafts: false

3
layouts/_default/list.md Normal file
View file

@ -0,0 +1,3 @@
# {{ .Title | plainify }}
{{ .RawContent | safeHTML }}

View file

@ -0,0 +1,3 @@
# {{ .Title | plainify }}
{{ .RawContent | safeHTML }}