Fix sitemap and add tests
This commit is contained in:
parent
6703937dc8
commit
832d3f1fd4
6 changed files with 21 additions and 9 deletions
|
|
@ -254,7 +254,7 @@ class RobotsView(View):
|
|||
def get(self, request: HttpRequest) -> HttpResponse: # noqa: ARG002
|
||||
"""Load the robots.txt file."""
|
||||
return HttpResponse(
|
||||
content="User-agent: *\nDisallow: /add\nDisallow: /upload\nDisallow: /accounts/",
|
||||
content="User-agent: *\nDisallow: /add\nDisallow: /upload\nDisallow: /accounts/\n\nSitemap: https://feedvault.se/sitemap.xml",
|
||||
content_type="text/plain",
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue