uhhh
This commit is contained in:
parent
2b13bdb313
commit
6bea0ca278
4 changed files with 8112 additions and 24 deletions
8102
package-lock.json
generated
Normal file
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
10
src/pages/feed.xml.js
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
import rss, { pagesGlobToRssItems } from "@astrojs/rss";
|
||||||
|
|
||||||
|
export async function GET(context) {
|
||||||
|
return rss({
|
||||||
|
title: "Buzz’s Blog",
|
||||||
|
description: "A humble Astronaut’s guide to the stars",
|
||||||
|
site: context.site,
|
||||||
|
items: await pagesGlobToRssItems(import.meta.glob("./blog/*.{md,mdx}")),
|
||||||
|
});
|
||||||
|
}
|
|
@ -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 />
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
import rss from '@astrojs/rss';
|
|
||||||
|
|
||||||
export function GET(context) {
|
|
||||||
return rss({
|
|
||||||
// `<title>` field in output xml
|
|
||||||
title: 'Buzz’s Blog',
|
|
||||||
// `<description>` field in output xml
|
|
||||||
description: 'A humble Astronaut’s 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>`,
|
|
||||||
});
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue