Add plain-text output for pages
This commit is contained in:
parent
303c15265e
commit
e397df9326
3 changed files with 27 additions and 0 deletions
21
config.yml
21
config.yml
|
@ -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
3
layouts/_default/list.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# {{ .Title | plainify }}
|
||||||
|
|
||||||
|
{{ .RawContent | safeHTML }}
|
3
layouts/_default/single.md
Normal file
3
layouts/_default/single.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# {{ .Title | plainify }}
|
||||||
|
|
||||||
|
{{ .RawContent | safeHTML }}
|
Loading…
Reference in a new issue