Skip to main content

A Django application to manage your Wagtail site's meta tags at runtime with full access to context variables.

Project description

1716979011262

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

  1. Install the package via pip:

    pip install wagtail_meta
    
  2. Add 'wagtail_meta' to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
       # ...,
       'wagtail_meta',
       # ...,
    ]
    
  3. 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>

Project details


Download files

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

Source Distribution

wagtail_meta-1.0.2.tar.gz (16.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page