Skip to content

Commit cf3b64c

Browse files
committed
fix: fix rss actually fix
1 parent b6a473d commit cf3b64c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

apps/next-blog/src/utils/generateRSSFeed.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function generateRssFeed(type: 'rss' | 'atom' | 'json' = 'rss') {
5252
link: url,
5353
description: post.excerpt,
5454
guid: url,
55-
content: url,
55+
// content: url,
5656
published: new Date(post.publishedAt ?? post.publishDate ?? Date.now()),
5757

5858
category: [
@@ -63,12 +63,7 @@ export async function generateRssFeed(type: 'rss' | 'atom' | 'json' = 'rss') {
6363
name: tag.title,
6464
})) ?? []),
6565
],
66-
...(image
67-
? {
68-
image,
69-
}
70-
: {}),
71-
...(author.length ? { author } : {}),
66+
...(author.length ? { author: author[0] } : {}),
7267
...(image
7368
? {
7469
extensions: [

0 commit comments

Comments
 (0)