refactor(i18n): flatten Catalan to root, remove /ca/ subdirectory

Catalan is the primary language and is now served at the bare domain (/),
with the previous /ca/ subdirectory removed entirely. Spanish remains at
/es/. The selector landing page is no longer needed: visiting / shows the
full Catalan article directly.
This commit is contained in:
2026-07-30 13:10:55 +02:00
parent 449b165e12
commit 40393e4b38
6 changed files with 36 additions and 98 deletions
+7
View File
@@ -1,5 +1,12 @@
# Changelog
## 0.4.0 — 2026-07-30
- `refactor(i18n)`: aplanar la estructura i18n — el català passa a servir-se a l'arrel (`/`), s'elimina el subdirectori `/ca/`.
- `feat(seo)`: el `canonical` del català apunta ara a `/` (era `/ca/`); `hreflang="ca"` i `hreflang="x-default"` també apunten a `/`.
- `removed`: landing page amb selector d'idioma (`index.html` a l'arrel ja no redirigeix ni mostra selector; el contingut català s'ofereix directament).
- `chore(meta)`: `sitemap.xml` reescrit per llistar `/` i `/es/` amb anotacions `hreflang` actualitzades; el selector `CA | ES` de cada pàgina enllaça `CA → /` i `ES → /es/`.
## 0.3.0 — 2026-07-30
- `feat(i18n)`: añade el catalán como idioma principal con estructura de URL `/ca/` (x-default) y `/es/`.
+4 -5
View File
@@ -8,17 +8,16 @@ Sitio editorial estático en catalán y español sobre el seguimiento de la *Pos
```
/
├── ca/
│ └── index.html # Català (primari, x-default)
├── index.html # Català (primari, x-default)
├── es/
│ └── index.html # Castellano
├── og-image-ca.jpg # 1200×630, imatge social per a /ca/
├── og-image-ca.jpg # 1200×630, imatge social per a /
├── og-image-es.jpg # 1200×630, imatge social per a /es/
├── robots.txt
└── sitemap.xml # enumera /ca/ i /es/ amb hreflang complet
└── sitemap.xml # enumera / i /es/ amb hreflang complet
```
- `/ca/` és l'idioma principal (`hreflang="x-default"`).
- `/` és l'idioma principal (`hreflang="x-default"`).
- `/es/` és l'alternativa en castellà.
- Cada pàgina porta un selector d'idioma a la cantonada superior dreta del `<header>` (`CA | ES`), amb `aria-current="page"` a l'idioma actiu.
- Tots dos documents declaren `<link rel="alternate" hreflang="…">` per a l'altra llengua i per a `x-default`, més el seu propi `canonical`.
-18
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
File diff suppressed because one or more lines are too long
+18 -68
View File
File diff suppressed because one or more lines are too long
+5 -5
View File
@@ -2,17 +2,17 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://posidonia.eivissaenvironmentalwatch.es/ca/</loc>
<loc>https://posidonia.eivissaenvironmentalwatch.es/</loc>
<lastmod>2026-07-30</lastmod>
<xhtml:link rel="alternate" hreflang="ca" href="https://posidonia.eivissaenvironmentalwatch.es/ca/"/>
<xhtml:link rel="alternate" hreflang="ca" href="https://posidonia.eivissaenvironmentalwatch.es/"/>
<xhtml:link rel="alternate" hreflang="es" href="https://posidonia.eivissaenvironmentalwatch.es/es/"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://posidonia.eivissaenvironmentalwatch.es/ca/"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://posidonia.eivissaenvironmentalwatch.es/"/>
</url>
<url>
<loc>https://posidonia.eivissaenvironmentalwatch.es/es/</loc>
<lastmod>2026-07-30</lastmod>
<xhtml:link rel="alternate" hreflang="ca" href="https://posidonia.eivissaenvironmentalwatch.es/ca/"/>
<xhtml:link rel="alternate" hreflang="ca" href="https://posidonia.eivissaenvironmentalwatch.es/"/>
<xhtml:link rel="alternate" hreflang="es" href="https://posidonia.eivissaenvironmentalwatch.es/es/"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://posidonia.eivissaenvironmentalwatch.es/ca/"/>
<xhtml:link rel="alternate" hreflang="x-default" href="https://posidonia.eivissaenvironmentalwatch.es/"/>
</url>
</urlset>