M package.json => package.json +1 -0
@@ 10,6 10,7 @@
"astro": "astro"
},
"dependencies": {
+ "@astrojs/rss": "^2.4.0",
"astro": "^2.3.0",
"astro-compress": "^1.1.42"
},
M src/pages/intro.md => src/pages/intro.md +2 -2
@@ 18,6 18,6 @@ a few things i'm passionate about:
professionally, i make computers go beep boop at a space science laboratory
-check out my latest [blog posts](/posts) below or email me an encrypted message
+check out my latest [blog posts](/posts) ([rss](/rss.xml)) below or email me an encrypted message
-powered by free and open source software ([astro](https://astro.build/), [nginx](https://nginx.org/), [k3s](https://k3s.io/)) and self-hosted <3
+powered by free and open source software ([astro](https://astro.build), [debian](https://www.debian.org), [k3s](https://k3s.io), [nginx](https://nginx.org)) and self-hosted <3
A => +18 -0
@@ 0,0 1,18 @@
import rss from "@astrojs/rss";
import { getCollection } from "astro:content";
export async function get() {
const posts = await getCollection('posts');
return rss({
title: "skovati.dev",
description: "hi, i'm skovati",
site: "https://skovati.dev",
items: posts.map(post => ({
title: post.data.title,
pubDate: post.data.date,
desc: post.data.desc,
link: `/posts/${post.slug}/`,
})),
customData: `<language>en-us</language>`,
});
}