wagtail_meta
A library to manage meta-tags at runtime for your Wagtail site.
Allows for using context variables in a custom HTML meta tag, or the tag value content itself.
Quick start
-
Install the package via pip:
pip install wagtail_meta
-
Add 'wagtail_meta' to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
# ...,
'wagtail_meta',
# ...,
]
-
Use the template tag in your base template
{% load wagtail_meta %}
<!DOCTYPE html>
<html>
<head>
...
{% metatags %}
{# Optionally call with model argument {% metatags settings.wagtail_meta.metatags.tags %} #}
...
</head>
<body>
...
</body>
</html>