RSSbug修复

This commit is contained in:
tangly1024
2022-03-14 12:47:47 +08:00
parent 0a1b786673
commit 386f7320b9

View File

@@ -19,10 +19,10 @@ export function generateRss (posts) {
})
posts.forEach(post => {
feed.addItem({
TITLE: post.title,
title: post.title,
id: `${BLOG.LINK}/article/${post.slug}`,
LINK: `${BLOG.LINK}/article/${post.slug}`,
DESCRIPTION: post.summary,
link: `${BLOG.LINK}/article/${post.slug}`,
description: post.summary,
date: new Date(post?.date?.start_date || post.createdTime)
})
})