From 474a34c1da4c91312b80385b20c1e626f46a19fe Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Thu, 17 Mar 2022 10:27:25 +0800 Subject: [PATCH] rss --- lib/rss.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/rss.js b/lib/rss.js index d6cbaf4a..cd541463 100644 --- a/lib/rss.js +++ b/lib/rss.js @@ -30,7 +30,6 @@ export async function generateRss (posts) { const feed = new Feed({ title: BLOG.TITLE, description: BLOG.DESCRIPTION, - id: `${BLOG.LINK}/${BLOG.PATH}`, link: `${BLOG.LINK}/${BLOG.PATH}`, language: BLOG.LANG, favicon: `${BLOG.LINK}/favicon.png`, @@ -44,7 +43,7 @@ export async function generateRss (posts) { for (const post of posts) { feed.addItem({ title: post.title, - id: `${BLOG.LINK}/article/${post.slug}`, + guid: `${post.id}`, link: `${BLOG.LINK}/article/${post.slug}`, description: post.summary, content: await createFeedContent(post),