Add enabling configuration item for RSS portal
This commit is contained in:
@@ -76,7 +76,9 @@ export const getStaticProps: GetStaticProps<HomePageProps> = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
await generateRSSFeed();
|
||||
if (Config.RSSFeed?.enabled) {
|
||||
await generateRSSFeed();
|
||||
}
|
||||
|
||||
return {
|
||||
props: {
|
||||
|
||||
Reference in New Issue
Block a user