Skip to content

Commit

Permalink
feat: Add schemaorg, og and twitter
Browse files Browse the repository at this point in the history
Fix also excess tags
  • Loading branch information
adinhodovic committed Mar 6, 2024
1 parent 3fa39fa commit 8a618a6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
15 changes: 15 additions & 0 deletions django_wtf/core/views/index_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 0 additions & 10 deletions django_wtf/templates/core/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@
<html lang="en-US">
<head>
{% block head %}
<title>
{% block title %}
{{ title }}
{% endblock title %}
</title>
<meta name="description"
content="{% block description %}{{ description }}{% endblock description %}">
<meta name="keywords"
content="{% block keywords %}{{ keywords }}{% endblock keywords %}">
<meta charset="UTF-8">
{% include "meta/meta.html" %}
{% tailwind_css %}
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down

0 comments on commit 8a618a6

Please sign in to comment.