[bugfix]添加分享专用的摘要
使用article.Summary 在渲染的时候,会因为分行的问题,导致渲染失败
This commit is contained in:
@@ -254,6 +254,7 @@ router.get('/:category/:article', function (req, res, next) {
|
||||
ViewCount: article.ViewCount,
|
||||
LabelList: labelList,
|
||||
Summary: article.Summary,
|
||||
Summary_share:article.Summary.replace(/\r\n/g,"。"),
|
||||
Content: article.Content
|
||||
};
|
||||
res.render('blog/article', {
|
||||
|
||||
Reference in New Issue
Block a user