diff options
Diffstat (limited to 'src/responders.js')
-rw-r--r-- | src/responders.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/responders.js b/src/responders.js index 1a9e8ce..a11e598 100644 --- a/src/responders.js +++ b/src/responders.js @@ -2,6 +2,7 @@ const fs = require('fs') const rheo = require('rheo') +const markdown = require('./modules/markdown.js') const templateReader = template => () => fs.createReadStream(`${__dirname}/templates/${template}.html`) @@ -55,7 +56,7 @@ module.exports = { .pipe(rheo()) .inner('main', showPage('post')) .inner('article h1', rheo(post.data.get('title'))) - .inner('article main', rheo(post.body)) + .inner('article main', rheo(markdown(post.content))) .pipe(setTitle(config.site.title, post.data.get('title'))) .render() }, |