added markdown support to portfolio overview

This commit is contained in:
Kim, Jimin 2022-02-26 11:13:13 +09:00
parent 0d68774f05
commit 2079c21a48
2 changed files with 7 additions and 1 deletions

View file

@ -74,6 +74,12 @@ export default function parseMarkdown(
throw Error(`Date is not defined in file: ${path}`)
}
if (mode === ParseMode.PORTFOLIO) {
if (frontMatter.overview) {
frontMatter.overview = md.render(frontMatter.overview)
}
}
//
// work with rendered DOM
//

View file

@ -1,6 +1,6 @@
---
name: future projects
overview: Projects I'll work on in the future
overview: Next big projects ^TM^
image: /img/icon.png
---