simonw / til

Today I Learned

Home Page:https://til.simonwillison.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a sitemap.xml file

simonw opened this issue · comments

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

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

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