import { pluginRss } from '@rspress/plugin-rss';
pluginRss({
siteUrl: 'https://www.67-8.com',
feed: {
id: 'blog',
title: '67-8 博客',
language: 'zh-CN',
test: (item) =>
item.routePath.startsWith('/posts/') &&
item.routePath !== '/posts/' &&
!item.routePath.endsWith('/posts/'),
output: {
type: 'rss',
dir: '.',
filename: 'rss.xml',
},
},
});