Skip to content

Commit

Permalink
Update rss
Browse files Browse the repository at this point in the history
  • Loading branch information
derekmbrown committed Dec 2, 2024
1 parent b7f4657 commit 379be0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/rss.xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ export async function GET(context) {
notes.sort((a, b) => new Date(b.data.pubDate) - new Date(a.data.pubDate))

return rss({
xmlns: ({ atom: 'http://www.w3.org/2005/Atom' }),
customData:
`<atom:link href="${context.site}rss.xml" rel="self" type="application/rss+xml" />`,
title: 'Derek Brown\'s Notes',
description: 'Notes from Derek Brown.',
site: context.site,
Expand Down

0 comments on commit 379be0d

Please sign in to comment.