From 906888ae7392d600ddea5494cb6df9851804dc24 Mon Sep 17 00:00:00 2001 From: erjemin Date: Sat, 21 Mar 2026 15:52:43 +0300 Subject: [PATCH] =?UTF-8?q?mod:=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=B5=20=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=D1=8C=D0=BD=D0=BE=D0=B3=D0=BE=20canonical=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20index-=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86?= =?UTF-8?q?=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dicquo/templates/base.html | 6 +++--- dicquo/web/views.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dicquo/templates/base.html b/dicquo/templates/base.html index 63be3cc..79f028b 100644 --- a/dicquo/templates/base.html +++ b/dicquo/templates/base.html @@ -12,10 +12,10 @@ - - {% if IMAGE %}{% endif %} + {% if IMAGE %} + {% endif %} {# Шутка #} - {# Canonical #} + {# Canonical #}{% if DQ and DQ_SLUG %}{% else %}{% endif %} {# Favicons #} {# Technical Meta #} diff --git a/dicquo/web/views.py b/dicquo/web/views.py index 19a9d44..6a6f683 100644 --- a/dicquo/web/views.py +++ b/dicquo/web/views.py @@ -79,6 +79,8 @@ class CommonContextMixin: request.session['seen_ids'] = seen_ids context.update({'DQ': dq}) + # slag текущей цитаты + context.update({"DQ_SLUG": pytils.translit.slugify(dq.szContent.lower()[:120])}) # --- 3. АВТОР И ТЕГИ --- try: