diff --git a/packages/astro-ghostcms/index.ts b/packages/astro-ghostcms/index.ts index ec641589..99f7f958 100644 --- a/packages/astro-ghostcms/index.ts +++ b/packages/astro-ghostcms/index.ts @@ -278,9 +278,6 @@ export default function GhostCMS(options: UserConfig): AstroIntegration { const logNpmVersion = logger.fork("astro-ghostcms/npm-pub-version"); const logCheck = logger.fork("astro-ghostcms/check"); - // CONFIG DONE - logConfigDone.info(IC.CONFSETUPDONE); - const pJSON = await fse.readJson( path.resolve( fileURLToPath(import.meta.url), "..", 'package.json') @@ -295,6 +292,8 @@ export default function GhostCMS(options: UserConfig): AstroIntegration { logCheck.warn("Please consider updating."); } + // CONFIG DONE + logConfigDone.info(`${IC.CONFSETUPDONE} v${pkgVer}`); } } } diff --git a/packages/astro-ghostcms/package.json b/packages/astro-ghostcms/package.json index 0aa89f82..9675db82 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.1.9-dev01", + "version": "3.1.9-dev02", "homepage": "https://astro-ghostcms.xyz/", "type": "module", "license": "MIT", diff --git a/packages/astro-ghostcms/src/default-routes/rss-style.xsl b/packages/astro-ghostcms/src/default-routes/_rss-style.xsl similarity index 100% rename from packages/astro-ghostcms/src/default-routes/rss-style.xsl rename to packages/astro-ghostcms/src/default-routes/_rss-style.xsl diff --git a/packages/astro-ghostcms/src/default-routes/rss-style.xsl.ts b/packages/astro-ghostcms/src/default-routes/rss-style.xsl.ts index e6efaa0c..218f0e08 100644 --- a/packages/astro-ghostcms/src/default-routes/rss-style.xsl.ts +++ b/packages/astro-ghostcms/src/default-routes/rss-style.xsl.ts @@ -1,13 +1,83 @@ -import { fileURLToPath } from 'node:url'; -import path from "node:path"; -import pkg from 'fs-extra'; -const { readFileSync } = pkg; - export async function GET(){ - const response = readFileSync(path.resolve(fileURLToPath(import.meta.url), "..", 'rss-style.xsl')); - const buffer = Buffer.from((response)); - return new Response(buffer, { - headers: { "Content-Type": "text/xsl" }, - }); + return new Response( + ` + + + + + + <xsl:value-of select="/rss/channel/title"/> Web Feed + + + + + +
+
+

+ + + + + + + + + + + + + + + + + + + Web Feed +

+

+ + + + + Visit Website → + +
+

Feed

+ +
+

+ + + + + + +

+

+ +

+ +
+ Author: +
+
+ Published: +
+
+
+
+
+ + +
+
`, + { + headers: { + 'Content-Type':'text/xsl', + } + }) }