diff --git a/assets/pasted-20251118-034835-db8441aa.jpg b/assets/pasted-20251118-034835-db8441aa.jpg new file mode 100644 index 0000000..51ee33c Binary files /dev/null and b/assets/pasted-20251118-034835-db8441aa.jpg differ diff --git a/config/__pycache__/settings.cpython-311.pyc b/config/__pycache__/settings.cpython-311.pyc index 4f439f5..a6f9812 100644 Binary files a/config/__pycache__/settings.cpython-311.pyc and b/config/__pycache__/settings.cpython-311.pyc differ diff --git a/config/__pycache__/urls.cpython-311.pyc b/config/__pycache__/urls.cpython-311.pyc index 139db10..1057329 100644 Binary files a/config/__pycache__/urls.cpython-311.pyc and b/config/__pycache__/urls.cpython-311.pyc differ diff --git a/config/settings.py b/config/settings.py index 2301d78..9fa973c 100644 --- a/config/settings.py +++ b/config/settings.py @@ -55,6 +55,7 @@ INSTALLED_APPS = [ 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', + 'django.contrib.sitemaps', 'core', ] diff --git a/config/urls.py b/config/urls.py index 5093d47..f904c31 100644 --- a/config/urls.py +++ b/config/urls.py @@ -16,8 +16,15 @@ Including another URLconf """ from django.contrib import admin from django.urls import include, path +from django.contrib.sitemaps.views import sitemap +from core.sitemaps import StaticViewSitemap + +sitemaps = { + 'static': StaticViewSitemap, +} urlpatterns = [ path("admin/", admin.site.urls), path("", include("core.urls")), + path('sitemap.xml', sitemap, {'sitemaps': sitemaps}, name='django.contrib.sitemaps.views.sitemap'), ] diff --git a/core/__pycache__/sitemaps.cpython-311.pyc b/core/__pycache__/sitemaps.cpython-311.pyc new file mode 100644 index 0000000..f317f63 Binary files /dev/null and b/core/__pycache__/sitemaps.cpython-311.pyc differ diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index 1f807fa..d3bd842 100644 Binary files a/core/__pycache__/urls.cpython-311.pyc and b/core/__pycache__/urls.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 2b72b90..6f8919c 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/sitemaps.py b/core/sitemaps.py new file mode 100644 index 0000000..d354e43 --- /dev/null +++ b/core/sitemaps.py @@ -0,0 +1,11 @@ +from django.contrib.sitemaps import Sitemap +from django.urls import reverse + +class StaticViewSitemap(Sitemap): + def items(self): + return ['home', 'website-seo', 'youtube-seo', 'faq', 'testimonials'] + + def location(self, item): + if item in ['website-seo', 'youtube-seo', 'faq', 'testimonials']: + return '/' + item + return reverse(item) diff --git a/core/templates/base.html b/core/templates/base.html index 6794b64..687461d 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -17,6 +17,31 @@ + +
{% block content %}{% endblock %}
diff --git a/core/templates/core/faq.html b/core/templates/core/faq.html new file mode 100644 index 0000000..14053fb --- /dev/null +++ b/core/templates/core/faq.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block title %}FAQ - SEO Tag Generator{% endblock %} + +{% block head %} + + +{% endblock %} + +{% block content %} + +

FAQ

+ +{% endblock %} \ No newline at end of file diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 2fed3b4..75f018a 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -4,7 +4,8 @@ {% block title %}AI-Powered Content Generator{% endblock %} {% block head %} - + +