This commit is contained in:
Mira Kristipati 2024-06-04 23:36:18 -04:00
parent 2b13bdb313
commit 6bea0ca278
4 changed files with 8112 additions and 24 deletions

8102
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

10
src/pages/feed.xml.js Normal file
View file

@ -0,0 +1,10 @@
import rss, { pagesGlobToRssItems } from "@astrojs/rss";
export async function GET(context) {
return rss({
title: "Buzzs Blog",
description: "A humble Astronauts guide to the stars",
site: context.site,
items: await pagesGlobToRssItems(import.meta.glob("./blog/*.{md,mdx}")),
});
}

View file

@ -7,12 +7,6 @@ import Footer from "../components/Footer.astro";
<html lang="en"> <html lang="en">
<head> <head>
<BaseHead title="ArgentumCation" /> <BaseHead title="ArgentumCation" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" /><meta
name="generator"
content={Astro.generator}
/>
<title>Astro</title>
</head> </head>
<body class="container"> <body class="container">
<Header /> <Header />

View file

@ -1,18 +0,0 @@
import rss from '@astrojs/rss';
export function GET(context) {
return rss({
// `<title>` field in output xml
title: 'Buzzs Blog',
// `<description>` field in output xml
description: 'A humble Astronauts guide to the stars',
// Pull in your project "site" from the endpoint context
// https://docs.astro.build/en/reference/api-reference/#contextsite
site: context.site,
// Array of `<item>`s in output xml
// See "Generating items" section for examples using content collections and glob imports
items: [],
// (optional) inject custom xml
customData: `<language>en-us</language>`,
});
}