diff --git a/TealCode/TealCode/urls.py b/TealCode/TealCode/urls.py index dd8007f..36ba2d2 100644 --- a/TealCode/TealCode/urls.py +++ b/TealCode/TealCode/urls.py @@ -15,9 +15,12 @@ Including another URLconf """ from django.contrib import admin from django.urls import path, include +from django.views.generic.base import TemplateView urlpatterns = [ path('', include('main.urls')), path('analytics/', include('analytics.urls')), - path('SDGFOLKJASDNVASDFASDFSLAKDF/', admin.site.urls), + path("robots.txt", TemplateView.as_view(template_name="robots.txt", content_type="text/plain")), + path("sitemap.xml", TemplateView.as_view(template_name="sitemap.xml", content_type="text/xml")), + path('AD/SDGFOLKJASDNVASDFASDFSLAKDF/', admin.site.urls), ] diff --git a/TealCode/main/templates/base.html b/TealCode/main/templates/base.html index f5673df..5012c23 100644 --- a/TealCode/main/templates/base.html +++ b/TealCode/main/templates/base.html @@ -4,8 +4,10 @@
- - + + + + diff --git a/TealCode/main/templates/robots.txt b/TealCode/main/templates/robots.txt new file mode 100644 index 0000000..08f443f --- /dev/null +++ b/TealCode/main/templates/robots.txt @@ -0,0 +1,4 @@ +User-Agent: * +Disallow: /AD/ +Disallow: /AD/* +Disallow: /AD \ No newline at end of file diff --git a/TealCode/main/templates/sitemap.xml b/TealCode/main/templates/sitemap.xml new file mode 100644 index 0000000..6109335 --- /dev/null +++ b/TealCode/main/templates/sitemap.xml @@ -0,0 +1,22 @@ +