Fix sitemap and add tests

This commit is contained in:
Joakim Hellsén 2024-03-16 19:04:26 +01:00
commit 832d3f1fd4
No known key found for this signature in database
GPG key ID: D196AE66FEBE1DC9
6 changed files with 21 additions and 9 deletions

View file

@ -12,7 +12,7 @@ class StaticViewSitemap(Sitemap):
def items(self: StaticViewSitemap) -> list[str]:
"""Return all the items in the sitemap."""
return ["feeds:index", "feeds:feeds", "feeds:domains"]
return ["index", "feeds", "domains"]
def location(self: StaticViewSitemap, item: str) -> str:
"""Return the location of the item."""