summary refs log tree commit diff stats
path: root/src/domain
diff options
context:
space:
mode:
Diffstat (limited to 'src/domain')
-rw-r--r--src/domain/posts.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/domain/posts.js b/src/domain/posts.js
index 14bc7cc..aedf58e 100644
--- a/src/domain/posts.js
+++ b/src/domain/posts.js
@@ -3,6 +3,7 @@
 const fs = require('fs')
 const path = require('path')
 const matter = require('gray-matter')
+const markdown = require('../modules/markdown.js')
 
 const grayMatterOptions = {
   lang: 'toml',
@@ -31,6 +32,8 @@ function getTitle (file) {
 function get (filename) {
   const fileMatter = matter.read(filename, grayMatterOptions)
   fileMatter.basename = getTitle(fileMatter)
+  delete fileMatter.orig
+  fileMatter.body = markdown(fileMatter.content)
   return canonicaliseMetadata(fileMatter)
 }