Update rss.js

This commit is contained in:
tangly1024
2022-01-02 12:49:44 +08:00
committed by GitHub
parent 147689b78d
commit 5a34ff2f05

View File

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