- Added 12 blog collections: art, bfs, dfs, problems, puzzles, reviews, reflections, vibes, workflows, magic, contests, poetry - Created content config with glob loaders for all collections - Added sample posts for each collection - Fixed TypeScript collection recognition by removing duplicate config - Made BlogPosts component collection-aware for proper routing - Created individual post pages ([...slug].astro) for each collection - Added Netlify subdomain routing configuration - Updated all references to use neeldhara.blog as main domain - Fixed navigation links in all-blogs component Ready for GitHub/Netlify deployment with subdomain support.
15 lines
442 B
JavaScript
15 lines
442 B
JavaScript
import rss from "@astrojs/rss";
|
|
import { getCollection } from "astro:content";
|
|
|
|
export async function GET(context) {
|
|
const posts = await getCollection("poetry");
|
|
return rss({
|
|
title: "Poetry - Code in Verse",
|
|
description: "Programming concepts expressed through haikus, sonnets, and creative verse.",
|
|
site: context.site,
|
|
items: posts.map((post) => ({
|
|
...post.data,
|
|
link: `/poetry/${post.id}/`,
|
|
})),
|
|
});
|
|
}
|