Skip to main content
https://badge.fury.io/py/wagtail-metadata-mixin.svg https://img.shields.io/pypi/pyversions/wagtail-metadata-mixin.svg https://img.shields.io/pypi/djversions/wagtail-metadata-mixin.svg https://github.com/bashu/wagtail-metadata-mixin/actions/workflows/test.yml/badge.svg

OpenGraph, Twitter Card and Schema.org snippet tags for Wagtail CMS pages.

The current version is tested for compatiblily with the following:

  • Wagtail versions 6.3 to 7.4

  • Django versions 5.2, 6.0 and 6.1

  • Python versions 3.10 to 3.14

Authored by Basil Shubin, and some great contributors.

Installation

First install the module, preferably in a virtual environment. It can be installed from PyPI:

pip install wagtail-metadata-mixin

Requirements

You must have django-meta installed and configured, see the django-meta documentation for details and setup instructions.

Setup

First make sure the project is configured for django-meta.

Then add the following settings:

INSTALLED_APPS += (
    'wagtailmetadata',
)

and just include meta/meta.html template in your templates

{% load meta %}

<html {% meta_namespaces_schemaorg %}>
    <head {% meta_namespaces %}>
        {% include "meta/meta.html" %}
    </head>
    <body>...</body>
</html>

Check django-meta documentation for more details.

Usage

# models.py

from wagtail.models import Page, PageBase

from wagtailmetadata.models import MetadataPageMixin

# ensure MetadataPageMixin class goes before Page class
class CustomPage(MetadataPageMixin, Page):
    schemaorg_type = "Page"

    promote_panels = Page.promote_panels + MetadataPageMixin.panels

Contributing

If you like this module, forked it, or would like to improve it, please let us know! Pull requests are welcome too. :-)

License

wagtail-metadata-mixin is released under the MIT license.

Changes

3.0.0 (2026-08-15)

  • Bumped requirements: Wagtail 6.3+, Django 5.2/6.0/6.1, Python 3.10+, django-meta 2.5+.

2.0.2 (2021-11-29)

  • Fixed stupid typo.

2.0.1 (2021-11-29)

  • Added ru translation.

2.0.0 (2021-11-28)

  • Added Wagtail 2.15 and Django 3.2 support.

  • Dropped Wagtail 2.7 support.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtail_metadata_mixin-3.0.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wagtail_metadata_mixin-3.0.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file wagtail_metadata_mixin-3.0.0.tar.gz.

File metadata

  • Download URL: wagtail_metadata_mixin-3.0.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for wagtail_metadata_mixin-3.0.0.tar.gz
Algorithm Hash digest
SHA256 24bb157bc63a3b669b47a041333e96258b16fe86dbe589304482dd26d7c2d55c
MD5 c87a010b2c14fdc15723621b08b5476d
BLAKE2b-256 5dc5c61e3b9d1e4705ab49de8c7607e46b249f2ba5c0ca0293ec636468be653c

See more details on using hashes here.

Provenance

The following attestation bundles were made for wagtail_metadata_mixin-3.0.0.tar.gz:

Publisher: release.yml on bashu/wagtail-metadata-mixin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wagtail_metadata_mixin-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wagtail_metadata_mixin-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59c264bdd341cf4e17f8fc6878635051bd9e090f9614321f84fa5f0fb3ae8be4
MD5 b4099568d69a3e63eadb1e0701569964
BLAKE2b-256 57dce3b1ce5dab0777cf883a088c781a6db2fc55646810f25864a82f97fba302

See more details on using hashes here.

Provenance

The following attestation bundles were made for wagtail_metadata_mixin-3.0.0-py3-none-any.whl:

Publisher: release.yml on bashu/wagtail-metadata-mixin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

3.0.1

2 files

This release

3.0.0 This release

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

0.1.1

2 files

0.1.0

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page