Skip to content

Commit

Permalink
js: fix rss links
Browse files Browse the repository at this point in the history
  • Loading branch information
gorenburg committed Dec 29, 2024
1 parent fd7e9c8 commit bce9d6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/rss.xml/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export async function GET({ fetch }) {
<item>
<title>${post.title}</title>
<description>${post.description ? post.description : ''}</description>
<link>${config.url}/${post.slug}</link>
<guid isPermaLink="true">${config.url}/${post.slug}</guid>
<link>${config.url}${post.slug}</link>
<guid isPermaLink="true">${config.url}${post.slug}</guid>
<pubDate>${new Date(post.date).toUTCString()}</pubDate>
</item>
`
Expand Down
1 change: 1 addition & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const config = {
entries: [
'*',
'/sitemap.xml',
'/rss.xml'
],

handleHttpError: 'warn'
Expand Down

0 comments on commit bce9d6a

Please sign in to comment.