Merge branch 'master' into 'master'

Allow index page in robots.txt

See merge request bocal/site!1
This commit is contained in:
Théophile Bastian 2022-05-22 18:50:14 +02:00
commit 3f68236ee0

View file

@ -7,7 +7,7 @@ from mainsite.models import Publication, PublicationYear, SiteConfiguration
def robots_view(request):
""" Robots.txt view """
body = "User-Agent: *\nDisallow: /\n"
body = "User-Agent: *\nDisallow: /\nAllow: /$\n"
return HttpResponse(body, content_type="text/plain")