Commit b20e050
seo(i18n): add hreflang link tags to per-page HTML head
generateMetadata in the catch-all MDX route now emits alternates.languages
for all 4 locales plus x-default. Next.js renders these as
<link rel="alternate" hreflang="..." href="..." /> in each page's <head>,
giving Google a per-page hreflang signal in addition to the sitemap-level
alternates.
Belt-and-suspenders for SEO: search engines read both signals, but the
HTML head is the more robust source.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c2eb09b commit b20e050
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
11 | 20 | | |
12 | 21 | | |
13 | 22 | | |
14 | 23 | | |
15 | 24 | | |
| 25 | + | |
16 | 26 | | |
17 | 27 | | |
18 | 28 | | |
| |||
0 commit comments