site-library/src/model/rss.ts
2025-03-08 21:04:49 +01:00

17 lines
474 B
TypeScript

import { RSSFeed } from '@astrojs/rss'
import rss from '@astrojs/rss';
import type { IComponentNode, IComponentConfig } from '@polymech/commons'
export const get = async (node: IComponentNode, config: IComponentConfig): Promise<RSSFeed> => {
return {
title: config.name,
description: config.keywords || '',
items: [{
title: config.name,
description: config.keywords || '',
link: node.path
}]
}
}