From 97c1e8da0c8a73ef5289b930b5c12745912ada7f Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> Date: Tue, 18 Jun 2024 16:44:54 +0200 Subject: Deprecate blog and mastodon link --- src/pages/blog.xml.js | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 src/pages/blog.xml.js (limited to 'src/pages/blog.xml.js') diff --git a/src/pages/blog.xml.js b/src/pages/blog.xml.js deleted file mode 100644 index ec8d424..0000000 --- a/src/pages/blog.xml.js +++ /dev/null @@ -1,19 +0,0 @@ -import rss from '@astrojs/rss'; -import { getCollection } from 'astro:content'; - - -export async function GET(context) { - const collection = await getCollection('blog'); - - return rss({ - title: "Blog de Ariel Costas", - description: "Artículos del blog de Ariel Costas", - site: context.site, - items: collection.map((post) => ({ - title: post.data.title, - link: `${context.site}blog/${post.slug}`, - description: post.data.metaDescription, - pubDate: post.data.publishedAt - })) - }) -} \ No newline at end of file -- cgit v1.3