mirror of
https://github.com/rjNemo/orbital-orbit
synced 2026-06-12 18:06:38 +00:00
feat: add rss
This commit is contained in:
parent
65c976ed93
commit
8c143a1df1
3 changed files with 2517 additions and 2740 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
// @ts-check
|
// @ts-check
|
||||||
import { defineConfig } from "astro/config";
|
import { defineConfig } from "astro/config";
|
||||||
|
|
||||||
|
import vue from "@astrojs/vue";
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({});
|
export default defineConfig({
|
||||||
|
site: "https://orbital-orbit.netlify.app",
|
||||||
|
integrations: [vue()],
|
||||||
|
});
|
||||||
5239
pnpm-lock.yaml
5239
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
11
src/pages/rss.xml.js
Normal file
11
src/pages/rss.xml.js
Normal 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>`,
|
||||||
|
});
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue