pypi wagtail-herald 0.10.2
v0.10.2: translation_of + hreflang support

latest releases: 0.12.1, 0.12.0, 0.11.1...
6 months ago

What's New

  • translation_of field on SEOPageMixin — link any page to its original-language version
  • Automatic hreflang + x-default output via {% seo_head %} — bidirectional links between original and translated pages
  • get_hreflang_links() method for programmatic access

Usage

# In Wagtail admin or via API, set translation_of on the translated page
en_page.translation_of = ja_page
en_page.save()

The {% seo_head %} tag will automatically output:

<link rel="alternate" hreflang="ja" href="https://example.com/ja-page/">
<link rel="alternate" hreflang="en" href="https://example.com/en-page/">
<link rel="alternate" hreflang="x-default" href="https://example.com/ja-page/">

No migration needed in wagtail-herald (abstract mixin). Run makemigrations in your project after upgrading.

Don't miss a new wagtail-herald release

NewReleases is sending notifications on new releases.