feat: Implement RSS Feed #12

Merged
aniva merged 6 commits from post/rss into main 2024-10-11 01:36:24 -07:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 906a9fccf1 - Show all commits

View File

@ -2,7 +2,9 @@ import { getPosts } from '$lib/posts';
import siteMetadata from '$content/metadata.json'; import siteMetadata from '$content/metadata.json';
import type { Post } from '$lib/types' import type { Post } from '$lib/types'
export async function GET({ fetch }) { export const prerender = true;
export async function GET() {
const posts: Post[] = await getPosts(); const posts: Post[] = await getPosts();
const headers = { 'Content-Type': 'application/xml' } const headers = { 'Content-Type': 'application/xml' }