Add enabling configuration item for RSS portal

This commit is contained in:
PrinOrange
2023-12-26 11:08:42 +08:00
parent 7f9e4cfe5b
commit b856222c53
4 changed files with 17 additions and 4 deletions

View File

@@ -76,7 +76,9 @@ export const getStaticProps: GetStaticProps<HomePageProps> = async () => {
}
}
await generateRSSFeed();
if (Config.RSSFeed?.enabled) {
await generateRSSFeed();
}
return {
props: {