fix: exclude /archives from sitemap if it is disabled (#425)

This commit is contained in:
Konstantin Komelin
2025-01-05 09:01:02 +01:00
committed by GitHub
parent 43387b0d94
commit c2e2dbda30
+3 -1
View File
@@ -14,7 +14,9 @@ export default defineConfig({
applyBaseStyles: false,
}),
react(),
sitemap(),
sitemap({
filter: page => SITE.showArchives || !page.endsWith("/archives"),
}),
],
markdown: {
remarkPlugins: [