Skip to content

Commit

Permalink
fix: rss autodetection
Browse files Browse the repository at this point in the history
  • Loading branch information
idlist committed Nov 4, 2024
1 parent eb2d01c commit 0065715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/layout/base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const t = useLang(code)
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" type="image/png" href="/favicon.png" />
<link rel="alternate" type="application/rss+xml" title="Reinventing the Wheel | i'D Blog" href={new URL('rss.xml', Astro.site)} />
<title>{title}</title>
</head>

Expand Down
1 change: 1 addition & 0 deletions src/pages/rss.xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const GET: APIRoute = async (ctx) => {
title: 'Reinventing the Wheel | i\'D Blog',
description: '',
site: ctx.site!,
trailingSlash: false,
items: posts.map((post) => ({
title: post.data.title,
pubDate: post.data.date,
Expand Down

0 comments on commit 0065715

Please sign in to comment.