Skip to content

Commit aa2f0cc

Browse files
committed
fix(sitemap): exclude tag archive pages from sitemap
1 parent 8d96056 commit aa2f0cc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

astro.config.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ function ghPagesConfig() {
1717

1818
export default defineConfig({
1919
site: "https://clickin.github.io",
20-
integrations: [mdx({ remarkPlugins: [remarkRewritePostAssets] }), sitemap()],
20+
integrations: [
21+
mdx({ remarkPlugins: [remarkRewritePostAssets] }),
22+
sitemap({
23+
filter: (page) => !page.includes("/blog/tag/"),
24+
}),
25+
],
2126
markdown: {
2227
shikiConfig: {
2328
themes: {

0 commit comments

Comments
 (0)