We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d0d82c commit e7d4ffaCopy full SHA for e7d4ffa
scholia/app/views.py
@@ -32,6 +32,21 @@
32
from ..config import config
33
34
35
+ROBOTS_TXT = """User-agent: *
36
+Allow: /$
37
+Allow: /about
38
+Allow: /faq
39
+Allow: /author/$
40
+Allow: /organization/$
41
+Allow: /publisher/$
42
+Allow: /series/$
43
+Allow: /topic/$
44
+Allow: /venue/$
45
+Allow: /work/$
46
+Disallow: /
47
+"""
48
+
49
50
class RegexConverter(BaseConverter):
51
"""Converter for regular expression routes.
52
@@ -2788,8 +2803,6 @@ def show_robots_txt():
2788
2803
Disallow: /
2789
2804
2790
2805
"""
2791
- ROBOTS_TXT = ('User-agent: *\n'
2792
- 'Disallow: /\n')
2793
2806
return Response(ROBOTS_TXT, mimetype="text/plain")
2794
2807
2795
2808
0 commit comments