All Projects → bashu → wagtail-metadata-mixin

bashu / wagtail-metadata-mixin

Licence: MIT license
🔍 OpenGraph, Twitter Card and Schema.org snippet tags for Wagtail CMS pages

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to wagtail-metadata-mixin

SeoTags
SeoTags create all SEO tags you need such as meta, link, twitter card (twitter:), open graph (og:), and JSON-LD schema (structred data).
Stars: ✭ 113 (+169.05%)
Mutual labels:  seo, opengraph, metatags, twitter-card
All In One Seo Pack
All in One SEO Pack plugin for WordPress SEO
Stars: ✭ 281 (+569.05%)
Mutual labels:  seo, schema-org, opengraph
Ultimate Metatags
A large snippet for your page's <head> that includes all the meta tags you'll need for OPTIMAL sharing and SEO. Extensive work has been put into ensuring you have the optimal images for the most important social media platforms.
Stars: ✭ 24 (-42.86%)
Mutual labels:  social-network, schema-org, opengraph
The Seo Framework
The SEO Framework WordPress plugin.
Stars: ✭ 329 (+683.33%)
Mutual labels:  seo, schema-org, opengraph
Ngmeta
Dynamic meta tags in your AngularJS single page application
Stars: ✭ 152 (+261.9%)
Mutual labels:  seo, opengraph
React Structured Data
React Structured Data provides an easy way to add structured data to your React apps
Stars: ✭ 120 (+185.71%)
Mutual labels:  seo, schema-org
Meta Tags
Search Engine Optimization (SEO) for Ruby on Rails applications.
Stars: ✭ 2,464 (+5766.67%)
Mutual labels:  seo, opengraph
Yoast Seo For Typo3
Yoast SEO plugin for TYPO3
Stars: ✭ 43 (+2.38%)
Mutual labels:  seo, opengraph
Laravelmetatags
The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project
Stars: ✭ 226 (+438.1%)
Mutual labels:  seo, opengraph
Django Meta
Pluggable app to allow Django developers to quickly add meta tags and OpenGraph, Twitter, and Google Plus properties to their HTML responses.
Stars: ✭ 339 (+707.14%)
Mutual labels:  social-network, seo
The-SEO-Framework-Extension-Manager
A WordPress plugin that manages extensions for The SEO Framework.
Stars: ✭ 64 (+52.38%)
Mutual labels:  seo, schema-org
Open Graph
Library that assists in building Open Graph meta tags
Stars: ✭ 112 (+166.67%)
Mutual labels:  seo, opengraph
Wordpress Seo
Yoast SEO for WordPress
Stars: ✭ 1,301 (+2997.62%)
Mutual labels:  seo, opengraph
Seotools
SEO Tools for Laravel
Stars: ✭ 2,406 (+5628.57%)
Mutual labels:  seo, opengraph
Gatsby Advanced Starter
A high performance skeleton starter for GatsbyJS that focuses on SEO/Social features/development environment.
Stars: ✭ 1,224 (+2814.29%)
Mutual labels:  seo, schema-org
schema-dot-org
Validated structured data for websites
Stars: ✭ 42 (+0%)
Mutual labels:  seo, schema-org
awesome-search-engine-optimization
A curated list of backlink, social signal opportunities, and link building strategies and tactics to help improve search engine results and ranking.
Stars: ✭ 82 (+95.24%)
Mutual labels:  social-network, seo
really-rich-results
RRR makes structured data for WordPress really rich, and really easy.
Stars: ✭ 21 (-50%)
Mutual labels:  seo, schema-org
schema-and-structured-data-for-wp
Creating the best Structured Data and Schema plugin for WordPress
Stars: ✭ 66 (+57.14%)
Mutual labels:  seo, schema-org
magento2-module-seo
Magento 2 Module for Search Engine Optimization
Stars: ✭ 100 (+138.1%)
Mutual labels:  seo, opengraph

wagtail-metadata-mixin

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

The current version is tested for compatiblily with the following:

  • Wagtail versions 2.7 to 2.15
  • Django versions 2.2 to 3.2
  • Python versions 3.6 and 3.9

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.core.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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].