-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sitemap Page Exclusions Not Working #92
Comments
Hey Devon, I tested this out in a test project using a structure like this:
And using the following config
Gave me a sitemap like this
i.e. that pattern excludes anything in the research folder. If you wanted to only exclude certain directories in the research folder you could do that like this Folder structure:
Let me know if that kind of config works for you |
@devonbeard can this be closed after the changes we made yesterday? |
Still experiencing this issue:
UPDATE: |
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:
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?
The text was updated successfully, but these errors were encountered: