What's New
translation_offield 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.