feat(SEO): Add exclude filter to sitemap
- Excludes pages containing "/blog/tags" or "/blog/techs" from the sitemap. - Reduces unnecessary crawling and indexing of non-essential sections. - Improves SEO by focusing the sitemap on more valuable content.
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
│ ├── 📁blog # All posts page
|
||||
│ │ ├── index.astro # Blog home page
|
||||
│ │ ├── 📁posts # Blog posts
|
||||
├── │ ├── └── index.astro #All posts page
|
||||
├── │ ├── └── index.astro # All posts page
|
||||
│ │ ├── 📁tags # Blog tags
|
||||
│ │ └── 📁techs # Blog technologies
|
||||
│ ├── index.astro # Home page
|
||||
|
||||
@@ -8,7 +8,11 @@ import icon from "astro-icon";
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: "https://neonmint.efeele.dev",
|
||||
integrations: [preact(), icon(), sitemap()],
|
||||
integrations: [preact(), icon(), sitemap({
|
||||
filter: (page) =>
|
||||
!page.includes("/blog/tags") &&
|
||||
!page.includes("/blog/techs"),
|
||||
}),],
|
||||
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
|
||||
Reference in New Issue
Block a user