add SEO
This commit is contained in:
parent
8f5d475dd4
commit
bc2be24e7e
9 changed files with 325 additions and 6 deletions
|
@ -30,6 +30,7 @@ INSTALLED_APPS = [
|
|||
"home",
|
||||
"search",
|
||||
"wagtailcodeblock",
|
||||
"wagtailseo",
|
||||
"wagtail.contrib.settings",
|
||||
"wagtail.contrib.forms",
|
||||
"wagtail.contrib.redirects",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<html lang="en" class="h-full antialiased">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
{% include "wagtailseo/meta.html" %}
|
||||
<title>
|
||||
{% block title %}
|
||||
{% if page.seo_title %}{{ page.seo_title }}{% else %}{{ page.title }}{% endif %}
|
||||
|
@ -59,5 +60,6 @@
|
|||
{% block extra_js %}
|
||||
{# Override this in templates to add extra javascript #}
|
||||
{% endblock %}
|
||||
{% include "wagtailseo/struct_data.html" %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue