diff --git a/packages/astro-ghostcms/package.json b/packages/astro-ghostcms/package.json index 915e7e90..ecd35133 100644 --- a/packages/astro-ghostcms/package.json +++ b/packages/astro-ghostcms/package.json @@ -1,7 +1,7 @@ { "name": "@matthiesenxyz/astro-ghostcms", "description": "Astro GhostCMS integration to allow easier importing of GhostCMS Content", - "version": "3.0.3", + "version": "3.0.4", "homepage": "https://astro-ghostcms.xyz/", "type": "module", "license": "MIT", diff --git a/packages/astro-ghostcms/src/default-routes/rss.xml.js b/packages/astro-ghostcms/src/default-routes/rss.xml.js index ec4e318c..dbef4669 100644 --- a/packages/astro-ghostcms/src/default-routes/rss.xml.js +++ b/packages/astro-ghostcms/src/default-routes/rss.xml.js @@ -1,10 +1,10 @@ import rss from "@astrojs/rss"; -import { getGhostPosts, getGhostSettings } from '../api_old'; +import { getPosts, getSettings } from '../api'; import invariant from "tiny-invariant"; export async function GET(context) { - const posts = await getGhostPosts(); - const settings = await getGhostSettings(); + const posts = await getPosts(); + const settings = await getSettings(); invariant(settings, "Settings not found"); const title = settings.title; const description = settings.description; @@ -16,7 +16,7 @@ export async function GET(context) { title: post.title, pubDate: post.published_at, description: post.excerpt, - link: `/blog/${post.slug}/`, + link: `/${post.slug}/`, })), }); } \ No newline at end of file