Blog feed fixes #370 (#407)

* Refactor markdown rendering into separate module

* Render blog feed description in html
This commit is contained in:
Tom Auger 2018-02-11 16:05:58 +00:00 committed by Joel Marcey
parent 546cc8c7c5
commit 2d7274f6fe
3 changed files with 92 additions and 69 deletions

View file

@ -20,6 +20,8 @@ const blogRootURL = siteConfig.url + siteConfig.baseUrl + 'blog';
const siteImageURL =
siteConfig.url + siteConfig.baseUrl + siteConfig.headerIcon;
const renderMarkdown = require('../core/renderMarkdown.js');
/****************************************************************************/
let readMetadata;
@ -64,6 +66,8 @@ module.exports = function(type) {
}
}
content = renderMarkdown(content);
feed.addItem({
title: post.title,
link: url,