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:
EFEELE
2025-04-15 13:29:39 -06:00
parent 09dc543837
commit 3c2b794dd1
2 changed files with 6 additions and 2 deletions

View File

@@ -39,7 +39,7 @@
│ ├── 📁blog # All posts page │ ├── 📁blog # All posts page
│ │ ├── index.astro # Blog home page │ │ ├── index.astro # Blog home page
│ │ ├── 📁posts # Blog posts │ │ ├── 📁posts # Blog posts
├── │ ├── └── index.astro #All posts page ├── │ ├── └── index.astro # All posts page
│ │ ├── 📁tags # Blog tags │ │ ├── 📁tags # Blog tags
│ │ └── 📁techs # Blog technologies │ │ └── 📁techs # Blog technologies
│ ├── index.astro # Home page │ ├── index.astro # Home page

View File

@@ -8,7 +8,11 @@ import icon from "astro-icon";
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
site: "https://neonmint.efeele.dev", site: "https://neonmint.efeele.dev",
integrations: [preact(), icon(), sitemap()], integrations: [preact(), icon(), sitemap({
filter: (page) =>
!page.includes("/blog/tags") &&
!page.includes("/blog/techs"),
}),],
vite: { vite: {
plugins: [tailwindcss()], plugins: [tailwindcss()],