Skip to content

Sitemap Page Exclusions Not Working #92

@devonbeard

Description

@devonbeard

Hey Folks,

I've been trying to exclude paths from our sitemap using this plugin. I'm trying to have these subfolders not show up on the sitemap:

  • /research/briefs
  • /research/notes
  • /research/

Here are examples of paths I've tried with no luck:

Test 1 (didn't work):
​[[plugins]]
package = "@netlify/plugin-sitemap"

[plugins.inputs]
buildDir = "public"
exclude = [
# By Glob pattern
'./research//',
'./research/briefs/'
'./research/notes/
'
]

​Test 2 (didn't work):
​[[plugins]]
package = "@netlify/plugin-sitemap"

[plugins.inputs]
buildDir = "public"
exclude = [
# By Glob pattern
'./public/research//',
'./public/research/briefs/'
'./public/research/notes/
'
]

Test 3

exclude = [
# By Glob pattern
'//briefs/',
'
//notes/',
'/research//**',
]

Any thoughts on how I can get this to work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions