[bugfix]添加分享专用的摘要

使用article.Summary 在渲染的时候,会因为分行的问题,导致渲染失败
This commit is contained in:
振云 (Percy)
2017-12-28 09:34:37 +08:00
committed by GitHub
parent 41ca827f9e
commit d6fb68f009

View File

@@ -254,6 +254,7 @@ router.get('/:category/:article', function (req, res, next) {
ViewCount: article.ViewCount, ViewCount: article.ViewCount,
LabelList: labelList, LabelList: labelList,
Summary: article.Summary, Summary: article.Summary,
Summary_share:article.Summary.replace(/\r\n/g,"。"),
Content: article.Content Content: article.Content
}; };
res.render('blog/article', { res.render('blog/article', {