Skip to content

Commit 8cf0b6d

Browse files
committed
chore: update
1 parent 6d7903b commit 8cf0b6d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

theme/plugins/blog/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ module.exports = (optins = {}, ctx) => {
5050
// console.warn($page);
5151
// }
5252
}
53+
// if ($page.excerpt) { // 处理图片
54+
// console.warn($page.excerpt);
55+
// }
5356
return extendPageData($page, ctx);
5457
},
5558
};

theme/plugins/rss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = (options, ctx) => {
5858
}
5959
return {
6060
title: page.title,
61-
description: page.excerpt,
61+
description: summary || page.excerpt,
6262
url: `${siteUrl}${decodeURIComponent(page.path)}`,
6363
guid: page.path,
6464
categories: [].concat(categories, tags),

0 commit comments

Comments
 (0)