From 83fc27b8ce5433942fa5a0fe735358a4061e946d Mon Sep 17 00:00:00 2001 From: erjemin Date: Tue, 24 Aug 2021 15:01:28 +0300 Subject: [PATCH] =?UTF-8?q?sitemap.xml=20=D0=B8=20=D0=B8=D1=81=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20Slug?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B8=20=D1=84=D0=BE=D1=80=D0=BC=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B8=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cadpoint/cadpoint/urls.py | 1 + cadpoint/templates/index.jinja2 | 10 ++++------ cadpoint/templates/item.jinja2 | 12 ++++++------ cadpoint/templates/sitemap.jinja2 | 5 +++++ cadpoint/web/views.py | 11 +++++++++++ 5 files changed, 27 insertions(+), 12 deletions(-) create mode 100644 cadpoint/templates/sitemap.jinja2 diff --git a/cadpoint/cadpoint/urls.py b/cadpoint/cadpoint/urls.py index ddeceb2..7d4cc38 100644 --- a/cadpoint/cadpoint/urls.py +++ b/cadpoint/cadpoint/urls.py @@ -40,6 +40,7 @@ urlpatterns = [ url(r'^aboutcadpoint.html/(?P\d*)-\S*$', views.redirect_item), url(r'^item/(?P\d*)-\S*$', views.show_item), + url(r'^sitemap.xml$', views.sitemap), ] diff --git a/cadpoint/templates/index.jinja2 b/cadpoint/templates/index.jinja2 index 59f5ec9..8e31344 100644 --- a/cadpoint/templates/index.jinja2 +++ b/cadpoint/templates/index.jinja2 @@ -53,7 +53,7 @@
{% for i in LENTA %}{% endfor %}{% if LENTA %}{# НАВИГАЦИЯ ПО СТРАНИЦАМ СО СПИСКАМИ КОНТЕНТА ИЗ ПРОИЗВОЛЬНОЙ КАТЕГОРИИ: НАЧАЛО #}
@@ -94,8 +94,6 @@
{# НАВИГАЦИЯ ПО СТРАНИЦАМ СО СПИСКАМИ КОНТЕНТА ИЗ ПРОИЗВОЛЬНОЙ КАТЕГОРИИ: КОНЕЦ #}{% endif %} - -
{##}