From 8a618a6f8ab76dfbac8ef4f7bf73a480d7c9e53c Mon Sep 17 00:00:00 2001 From: adinhodovic Date: Wed, 6 Mar 2024 18:35:46 +0100 Subject: [PATCH] feat: Add schemaorg, og and twitter Fix also excess tags --- django_wtf/core/views/index_view.py | 15 +++++++++++++++ django_wtf/templates/core/base.html | 10 ---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/django_wtf/core/views/index_view.py b/django_wtf/core/views/index_view.py index fea10d7..200a6e5 100644 --- a/django_wtf/core/views/index_view.py +++ b/django_wtf/core/views/index_view.py @@ -17,6 +17,21 @@ class IndexView(MetadataMixin, TemplateView): "Django.WTF lists popular Django projects, apps and tools. " "The latest and greatest news in the Django community." ) + keywords = [ + "django", + "apps", + "packages", + "repositories", + "python", + "web", + "framework", + "apps", + "tools", + "news", + ] + use_schemaorg = True + use_og = True + use_twitter = True def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) diff --git a/django_wtf/templates/core/base.html b/django_wtf/templates/core/base.html index 9df14e3..e3fc5e5 100644 --- a/django_wtf/templates/core/base.html +++ b/django_wtf/templates/core/base.html @@ -3,16 +3,6 @@ {% block head %} - - {% block title %} - {{ title }} - {% endblock title %} - - - - {% include "meta/meta.html" %} {% tailwind_css %}