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

Add a sitemap.xml file #51

Closed
simonw opened this issue Aug 29, 2022 · 4 comments
Closed

Add a sitemap.xml file #51

simonw opened this issue Aug 29, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Aug 29, 2022

Need a new plugin for this, based on https://simonwillison.net/2020/Jan/6/sitemap-xml/

@simonw
Copy link
Owner Author

simonw commented Aug 29, 2022

@simonw
Copy link
Owner Author

simonw commented Aug 29, 2022

image

@simonw
Copy link
Owner Author

simonw commented Aug 29, 2022

Oh interesting - https://til.simonwillison.net/robots.txt now returns:

User-agent: *
Disallow: /tils

That's because datasette-block-robots is also installed.

Interesting that the first time round it was 500 erroring from the datasette-sitemap plugin, but now it's doing the other thing. Reminder that plugin execution order is not guaranteed!

til/metadata.yaml

Lines 10 to 13 in 66dd394

datasette-block-robots:
literal: |-
User-agent: *
Disallow: /tils

@simonw simonw closed this as completed in 3fee191 Aug 29, 2022
@simonw
Copy link
Owner Author

simonw commented Aug 29, 2022

https://til.simonwillison.net/robots.txt now does:

Sitemap: https://til.simonwillison.net/sitemap.xml
User-agent: *
Disallow: /tils

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

No branches or pull requests

1 participant