diff --git a/theme/plugins/blog/index.js b/theme/plugins/blog/index.js index 57f755c..f832f88 100644 --- a/theme/plugins/blog/index.js +++ b/theme/plugins/blog/index.js @@ -50,6 +50,9 @@ module.exports = (optins = {}, ctx) => { // console.warn($page); // } } + // if ($page.excerpt) { // 处理图片 + // console.warn($page.excerpt); + // } return extendPageData($page, ctx); }, }; diff --git a/theme/plugins/rss.js b/theme/plugins/rss.js index 3037884..0e8a27d 100644 --- a/theme/plugins/rss.js +++ b/theme/plugins/rss.js @@ -58,7 +58,7 @@ module.exports = (options, ctx) => { } return { title: page.title, - description: page.excerpt, + description: summary || page.excerpt, url: `${siteUrl}${decodeURIComponent(page.path)}`, guid: page.path, categories: [].concat(categories, tags),