Skip to content

Commit

Permalink
rss best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
tylersayshi committed Jan 16, 2025
1 parent 20e70fd commit b92ea1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/website/src/pages/api/rss.xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ const generateRSSFeed = (items: Item[]) => {
<link>${item.link}</link>
<pubDate>${item.pubDate}</pubDate>
<description>${item.description}</description>
<guid isPermaLink="true">${item.link}</guid>
</item>`,
)
.join('');

return `<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<atom:link href="https://waku.gg/api/rss.xml" rel="self" type="application/rss+xml" />
<title>Waku</title>
<link>https://waku.gg</link>
<description>The minimal React framework</description>
Expand Down

0 comments on commit b92ea1b

Please sign in to comment.