Personal Site
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Move rss to be index of /rss file Will add /rss/style endpoint

+4 -3
+1 -1
src/components/Base.astro
··· 27 27 rel="alternate" 28 28 type="application/rss+xml" 29 29 title="Your Site's Title" 30 - href={new URL("rss.xml", Astro.site)} 30 + href={new URL("rss", Astro.site)} 31 31 /> 32 32 33 33 <title>
+3 -2
src/pages/rss.xml.ts src/pages/rss/index.ts
··· 25 25 /* its ssg so dynamic imports are fine. 26 26 ../../ is bc it includes src/components 27 27 so we need to go to project root */ 28 - /* @vite-ignore */ 29 - const { default: Component } = await import(`../../${post.filePath}`); 28 + const { default: Component } = await import( 29 + /* @vite-ignore */ `../../../${post.filePath}` 30 + ); 30 31 const content = await container.renderToString(Component); 31 32 32 33 return { ...res, content: content };
src/pages/rss/style.ts

This is a binary file and will not be displayed.