Skip to content

Commit

Permalink
Fix Feed
Browse files Browse the repository at this point in the history
  • Loading branch information
macx committed Feb 29, 2024
1 parent 3d293e9 commit 3b5720f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/rss.xml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import rss from '@astrojs/rss'
import { getCollection } from 'astro:content'
import { SITE_CONST } from '../const.ts'

export async function GET(context: { title: string }) {
export async function GET(context: { site: string }) {
const articles = await getCollection('tutorials', ({ data }) => {
return import.meta.env.PROD ? data.isDraft !== true : true
})
Expand All @@ -11,7 +11,7 @@ export async function GET(context: { title: string }) {
return rss({
title: SITE_CONST.title,
description: SITE_CONST.description,
site: context.title,
site: context.site,
items: articles.map((article) => ({
title: article.data.title,
pubDate: article.data.pubDate,
Expand Down

0 comments on commit 3b5720f

Please sign in to comment.