wagtailseo.models

class wagtailseo.models.SeoMixin(*args, **kwargs)

Contains fields for SEO-related attributes on a Page model.

property seo_amp_url

Gets the full/absolute/canonical URL for the AMP version of this page.

property seo_author

Gets the name of the author of this page. Override in your Page model as necessary.

property seo_canonical_url

Gets the full/absolute/canonical URL preferred for meta tags and search engines. Override in your Page model as necessary.

property seo_description

Gets the correct search engine and Open Graph description of this page. Override in your Page model as necessary.

property seo_image

Gets the primary Open Graph image of this page.

property seo_image_url

Gets the absolute URL for the primary Open Graph image of this page.

Gets the primary logo of the organization.

property seo_logo_url

Gets the absolute URL for the organization logo.

property seo_og_type

Gets the correct Open Graph type for this page. Override in your Page model as necessary.

property seo_pagetitle

Gets the correct search engine and Open Graph title of this page. Override in your Page model as necessary.

property seo_published_at

Gets the date this page was first published. Override in your Page model as necessary.

property seo_sitename

Gets the site name. Override in your Page model as necessary.

property seo_struct_org_base_dict

Gets generic “Organization” data for use as a subset of other structured data types (for example, as publisher of an Article).

See: https://developers.google.com/search/docs/data-types/article

property seo_struct_org_dict

Gets full “Organization” structured data on top of base organization data.

See: https://developers.google.com/search/docs/data-types/local-business

property seo_struct_org_name

Gets org name for sturctured data using a fallback.

property seo_struct_publisher_dict

Gets the base organization info from either this page, or the root page.

property seo_twitter_card_content

Gets the correct style of twitter card for this page. Override in your Page model as necessary.

class wagtailseo.models.SeoSettings(*args, **kwargs)

Toggle Search engine optimization features and meta tags.

exception DoesNotExist
exception MultipleObjectsReturned
property at_twitter_site

The Twitter site handle, prepended with “@”.

class wagtailseo.models.SeoType(value)

An enumeration.

class wagtailseo.models.TwitterCard(value)

An enumeration.