Merge pull request #86 from tangly1024/preview

rss
This commit is contained in:
tangly1024
2022-03-17 10:33:50 +08:00
committed by GitHub

View File

@@ -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),