Skip to content
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

restriction on sitemap.thymeleaf #7

Open
umairarshadbutt opened this issue Apr 2, 2019 · 1 comment
Open

restriction on sitemap.thymeleaf #7

umairarshadbutt opened this issue Apr 2, 2019 · 1 comment

Comments

@umairarshadbutt
Copy link

umairarshadbutt commented Apr 2, 2019

this code is giving whole site sitemap, but i need to restrict some pages which can not be rendered. any solution?
for example

http://localhost:8820/contact/thank-you.html
2013-09-24

It should not be generate in the sitemap.xml

@jonbullock
Copy link
Member

One solution would be to add a custom metadata header flag/value and filter out content based on the value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants