init(): Initialize project with basic configuration files

This commit is contained in:
Prad Nukala
2026-06-29 10:48:48 -04:00
parent 5c8d69c49f
commit 293810b235
48 changed files with 1916 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { getCollection } from "astro:content";
import rss from "@astrojs/rss";
import { siteConfig } from "@/site.config";
export const GET = async () => {
const notes = await getCollection("note");
return rss({
title: siteConfig.title,
description: siteConfig.description,
site: import.meta.env.SITE,
items: notes.map((note) => ({
title: note.data.title,
pubDate: note.data.publishDate,
link: `notes/${note.id}/`,
})),
});
};