new rss feature is done and working
This commit is contained in:
parent
bc64a27dc3
commit
582f321c4a
|
@ -12,7 +12,6 @@ import path from "node:path";
|
|||
import fse from "fs-extra";
|
||||
import latestVersion from "./src/utils/latestVersion.js";
|
||||
|
||||
export * from "./types.js";
|
||||
/** INTERNAL CONSTANTS */
|
||||
const IC = {
|
||||
/** INTERNAL PACKAGE NAME */
|
||||
|
@ -147,14 +146,14 @@ export default function GhostCMS(options: UserConfig): AstroIntegration {
|
|||
|
||||
if( !GCD.dRSS ) {
|
||||
if( !GCD.dCO ) { logConfigSetup.info( IC.RSS )}
|
||||
injectRoute({
|
||||
pattern: '/rss.xml',
|
||||
entrypoint: `${IC.PKG}/rss.xml.ts`
|
||||
});
|
||||
injectRoute({
|
||||
pattern: '/rss-style.xsl',
|
||||
entrypoint: `${IC.PKG}/rss-style.xsl.ts`
|
||||
});
|
||||
injectRoute({
|
||||
pattern: '/rss.xml',
|
||||
entrypoint: `${IC.PKG}/rss.xml.ts`
|
||||
});
|
||||
} else { if( !GCD.dCO ) { logConfigSetup.info(IC.idRSS)}}
|
||||
|
||||
if ( !GCD.dOG ) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@matthiesenxyz/astro-ghostcms",
|
||||
"description": "Astro GhostCMS integration to allow easier importing of GhostCMS Content",
|
||||
"version": "3.1.9-dev02",
|
||||
"version": "3.2.0",
|
||||
"homepage": "https://astro-ghostcms.xyz/",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
|
@ -37,20 +37,23 @@
|
|||
"email": "issues@astro-ghostcms.xyz"
|
||||
},
|
||||
"main": "index.ts",
|
||||
"types": "types.ts",
|
||||
"types": "types.d.ts",
|
||||
"files": [
|
||||
"src",
|
||||
".env.demo",
|
||||
"index.ts",
|
||||
"tsconfig.json",
|
||||
"types.ts"
|
||||
"types.d.ts"
|
||||
],
|
||||
"exports": {
|
||||
".": "./index.ts",
|
||||
"./api": "./src/api/index.ts",
|
||||
"./api-core": "./src/api/content-api/index.ts",
|
||||
"./config": "./src/integrations/virtual-config.ts",
|
||||
"./types": "./types.ts",
|
||||
"./config": {
|
||||
"default": "./src/integrations/virtual-config.ts",
|
||||
"types": "./src/integrations/virtual.d.ts"
|
||||
},
|
||||
"./types": "./types.d.ts",
|
||||
"./satoriOG": "./src/integrations/satori.ts",
|
||||
"./404.astro": "./src/default-routes/404/404.astro",
|
||||
"./rss.xml.ts": "./src/default-routes/rss.xml.ts",
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -17,7 +17,6 @@ export async function GET(){
|
|||
<div class="container-md px-3 py-3 markdown-body">
|
||||
<header class="py-5">
|
||||
<h1 class="border-0">
|
||||
<!-- https://commons.wikimedia.org/wiki/File:Feed-icon.svg -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" style="vertical-align: text-bottom; width: 1.2em; height: 1.2em;" class="pr-1" id="RSSicon" viewBox="0 0 256 256">
|
||||
<defs>
|
||||
<linearGradient x1="0.085" y1="0.085" x2="0.915" y2="0.915" id="RSSg">
|
||||
|
@ -34,7 +33,6 @@ export async function GET(){
|
|||
<path d="M160 213h-34a82 82 0 0 0 -82 -82v-34a116 116 0 0 1 116 116z" fill="#FFF"/>
|
||||
<path d="M184 213A140 140 0 0 0 44 73 V 38a175 175 0 0 1 175 175z" fill="#FFF"/>
|
||||
</svg>
|
||||
|
||||
<xsl:value-of select="/rss/channel/title"/> Web Feed
|
||||
</h1>
|
||||
<p><xsl:value-of select="/rss/channel/description"/></p>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import type { Resvg } from "@resvg/resvg-js";
|
||||
import type satori from "satori";
|
||||
|
||||
export type { UserConfig } from './src/schemas';
|
||||
export type { UserConfig, GhostUserConfig } from './src/schemas';
|
||||
|
||||
export type * from "./src/api/index.ts";
|
||||
export type { Author, AuthorsIncludeSchema, Page, PagesIncludeSchema, Post, PostsIncludeSchema, Settings, Tag, TagsIncludeSchema, Tier, TiersIncludeSchema } from "./src/api/index.ts";
|
||||
|
||||
export type { ContentAPICredentials, APIVersions } from "@ts-ghost/core-api";
|
||||
|
Loading…
Reference in New Issue