mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-09 07:26:47 +00:00
Update rss.js
This commit is contained in:
@@ -20,8 +20,8 @@ export function generateRss (posts) {
|
|||||||
posts.forEach(post => {
|
posts.forEach(post => {
|
||||||
feed.addItem({
|
feed.addItem({
|
||||||
title: post.title,
|
title: post.title,
|
||||||
id: `${BLOG.link}/${post.slug}`,
|
id: `${BLOG.link}/article/${post.slug}`,
|
||||||
link: `${BLOG.link}/${post.slug}`,
|
link: `${BLOG.link}/article/${post.slug}`,
|
||||||
description: post.summary,
|
description: post.summary,
|
||||||
date: new Date(post?.date?.start_date || post.createdTime)
|
date: new Date(post?.date?.start_date || post.createdTime)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user