style: Try biome

This commit is contained in:
BuyMyMojo 2024-12-19 11:53:42 +11:00
parent 54b4349667
commit 7ed39cd0df
Signed by: aria
GPG key ID: 19AB7AA462B8AB3B
11 changed files with 180 additions and 152 deletions

View file

@ -1,18 +1,18 @@
import rss from '@astrojs/rss';
import rss from "@astrojs/rss";
import { getCollection } from "astro:content";
export async function GET(context) {
const posts = await getCollection("blog");
return rss({
title: "Aria | Blog",
description: "Just me being a silly little thing",
site: context.site,
items: posts.map((post) => ({
title: post.data.title,
pubDate: post.data.pubDate,
description: post.data.description,
link: `/posts/${post.id}/`,
})),
customData: `<language>en-us</language>`,
});
const posts = await getCollection("blog");
return rss({
title: "Aria | Blog",
description: "Just me being a silly little thing",
site: context.site,
items: posts.map((post) => ({
title: post.data.title,
pubDate: post.data.pubDate,
description: post.data.description,
link: `/posts/${post.id}/`,
})),
customData: `<language>en-us</language>`,
});
}