From 3432cb7fc22d934e76b94a4044a76b0dd4196f20 Mon Sep 17 00:00:00 2001 From: Jeremy Zilar Date: Mon, 3 Jun 2019 22:37:08 -0400 Subject: [PATCH] adding in date and summary to front matter --- import.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/import.js b/import.js index 42e4bbe887..514b444298 100644 --- a/import.js +++ b/import.js @@ -46,9 +46,13 @@ const createArticlePath = result => { }; const getFrontmatter = article => { + const date = article.created_at; const title = striptags(article.title); + const summary = striptags(article.excerpt); return yaml.dump({ - title + date, + title, + summary }); };