feat: more modern way to use 'reference' to get authors
This commit is contained in:
parent
9ff40d1e9e
commit
9ecf25f3ab
4 changed files with 21 additions and 12 deletions
|
@ -52,7 +52,16 @@ export async function GET(context) {
|
|||
},
|
||||
sanitize({ dropElements: ["script", "style"] }),
|
||||
]);
|
||||
feedItems.push({ ...post.data, link: `/post/${post.slug}/`, content });
|
||||
|
||||
// Make sure each feed item has required properties with proper formatting
|
||||
feedItems.push({
|
||||
title: post.data.title,
|
||||
description: post.data.description || '',
|
||||
pubDate: post.data.pubDate,
|
||||
link: `${baseUrl}/post/${post.slug}`,
|
||||
content,
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
// Return our RSS feed XML response.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue