Netlify sitemap plugin multiple excludes

Can someone help me out with the plugin-sitemap config?

[[plugins]]
package = “@netlify/plugin-sitemap”

[plugins.inputs]
exclude = [
# By Glob pattern
/admin’,
'
/tools’,
/contact/success’,
'
/200’,
]

So /admin isn’t in the sitemap, great… but the rest of the items (like /tools) are.

What am I missing here, do I not have the syntax right?

Hiya @sitefinitysteve - wondering if you have cut and pasted that correctly? Seems like you’ve got “smart quotes” in there:

‘/admin’

as you may or may not notice based on your font, that is separate/different open and closing ticks, rather than the character ' which is what is intended. Could you confirm that you have the intended apostrophe character there?

I figured it out,

The other pages needed .html on the end, admin didn’t :+1:

1 Like

Awesome to hear! Let us know if you have any other questions.