aboutsummaryrefslogtreecommitdiff
path: root/src/pages/blog.xml.js
diff options
context:
space:
mode:
authorAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-06-18 16:44:54 +0200
committerAriel Costas Guerrero <94913521+arielcostas@users.noreply.github.com>2024-06-18 16:44:54 +0200
commit97c1e8da0c8a73ef5289b930b5c12745912ada7f (patch)
tree8dbbcca21a699496d339fdc9fb6d31bf7c809f01 /src/pages/blog.xml.js
parentc34cb4134a1374323c3a99c5089f7aefdadda650 (diff)
Deprecate blog and mastodon link
Diffstat (limited to 'src/pages/blog.xml.js')
-rw-r--r--src/pages/blog.xml.js19
1 files changed, 0 insertions, 19 deletions
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