coderedcorp / wagtail-seo

Search engine and social media optimization for Wagtail.
Other
62 stars 18 forks source link

Only render SEO meta tags if a page object is present in the template context #36

Closed vsalvino closed 2 years ago

vsalvino commented 2 years ago

Otherwise, if the meta.html template is included in a template which does not have a page object (such as a re-usable base.html template) it will spew out a bunch of useless empty tags.