Skip to content

Commit b58b127

Browse files
authored
Merge pull request #211 from honeylogic-io/fix-meta
feat: Add schemaorg, og and twitter
2 parents 3fa39fa + 8a618a6 commit b58b127

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

django_wtf/core/views/index_view.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@ class IndexView(MetadataMixin, TemplateView):
1717
"Django.WTF lists popular Django projects, apps and tools. "
1818
"The latest and greatest news in the Django community."
1919
)
20+
keywords = [
21+
"django",
22+
"apps",
23+
"packages",
24+
"repositories",
25+
"python",
26+
"web",
27+
"framework",
28+
"apps",
29+
"tools",
30+
"news",
31+
]
32+
use_schemaorg = True
33+
use_og = True
34+
use_twitter = True
2035

2136
def get_context_data(self, **kwargs):
2237
context = super().get_context_data(**kwargs)

django_wtf/templates/core/base.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@
33
<html lang="en-US">
44
<head>
55
{% block head %}
6-
<title>
7-
{% block title %}
8-
{{ title }}
9-
{% endblock title %}
10-
</title>
11-
<meta name="description"
12-
content="{% block description %}{{ description }}{% endblock description %}">
13-
<meta name="keywords"
14-
content="{% block keywords %}{{ keywords }}{% endblock keywords %}">
15-
<meta charset="UTF-8">
166
{% include "meta/meta.html" %}
177
{% tailwind_css %}
188
<meta name="viewport" content="width=device-width, initial-scale=1">

0 commit comments

Comments
 (0)