diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 12:55:27 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-30 12:55:27 +0200 |
| commit | 5ef13e5aa5ea565b07441616ab1eece565aa2f53 (patch) | |
| tree | b34276c2537061e55d2cfdf7824fc713619f9230 /.erb_lint.yml | |
| parent | 60c3671b6f09f1f4d4a7d30216c94a80dbee6baa (diff) | |
Canonicalise per locale and declare hreflang alternates
German content is reachable at both /updates/foo and /de/updates/foo,
and a page with no English translation renders German at
/en/updates/foo through the fallback chain, so three URLs each
claimed to be canonical. Both tags now derive from one
locale-to-URL function, which points every duplicate at the address of
the version actually served, the unprefixed German URL, matching
default_url_options.
Alternates are declared only for locales in which the page genuinely has
a translation, since /en/ serving German through the fallback is not an
English version of the page. x-default points at German, the site's
primary language.
Diffstat (limited to '.erb_lint.yml')
0 files changed, 0 insertions, 0 deletions
