feat: add rss

This commit is contained in:
Ruidy 2025-01-01 21:01:15 +01:00
parent 65c976ed93
commit 8c143a1df1
No known key found for this signature in database
GPG key ID: E00F51288CB857CC
3 changed files with 2517 additions and 2740 deletions

View file

@ -1,5 +1,10 @@
// @ts-check
import { defineConfig } from "astro/config";
import vue from "@astrojs/vue";
// https://astro.build/config
export default defineConfig({});
export default defineConfig({
site: "https://orbital-orbit.netlify.app",
integrations: [vue()],
});

File diff suppressed because it is too large Load diff

11
src/pages/rss.xml.js Normal file
View file

@ -0,0 +1,11 @@
import rss, { pagesGlobToRssItems } from "@astrojs/rss";
export async function GET(context) {
return rss({
title: "Astro Learner | Blog",
description: "My journey learning Astro",
site: context.site,
items: await pagesGlobToRssItems(import.meta.glob("./**/*.md")),
customData: `<language>en-us</language>`,
});
}