We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6a473d commit cf3b64cCopy full SHA for cf3b64c
apps/next-blog/src/utils/generateRSSFeed.ts
@@ -52,7 +52,7 @@ export async function generateRssFeed(type: 'rss' | 'atom' | 'json' = 'rss') {
52
link: url,
53
description: post.excerpt,
54
guid: url,
55
- content: url,
+ // content: url,
56
published: new Date(post.publishedAt ?? post.publishDate ?? Date.now()),
57
58
category: [
@@ -63,12 +63,7 @@ export async function generateRssFeed(type: 'rss' | 'atom' | 'json' = 'rss') {
63
name: tag.title,
64
})) ?? []),
65
],
66
- ...(image
67
- ? {
68
- image,
69
- }
70
- : {}),
71
- ...(author.length ? { author } : {}),
+ ...(author.length ? { author: author[0] } : {}),
72
...(image
73
? {
74
extensions: [
0 commit comments