Template
seo: améliorations SEO, accessibilité et propreté HTML
Meta descriptions uniques, Open Graph, canonical URL, robots. Skip-to-content link, rôles ARIA, alt text descriptifs, hiérarchie de titres corrigée, nav secondaire en <nav>, routeToTitle au format <nom> | FWS Linux.
This commit is contained in:
7 files changed
+98
-76
No files matched your search
@@ -141,7 +141,7 @@
|
||||
|
||||
function routeToTitle(route) {
|
||||
if (route === "index") {
|
||||
return "Fws Web";
|
||||
return "Accueil | FWS Linux";
|
||||
}
|
||||
|
||||
const label = route
|
||||
@@ -150,7 +150,7 @@
|
||||
.map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))
|
||||
.join(" / ");
|
||||
|
||||
return `Fws Web - ${label}`;
|
||||
return `${label} | FWS Linux`;
|
||||
}
|
||||
|
||||
async function loadRoute(route) {
|
||||
|
||||
@@ -4,6 +4,26 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* ── Skip link (accessibilité) ── */
|
||||
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
top: -100%;
|
||||
left: 0.5rem;
|
||||
z-index: 9999;
|
||||
padding: 0.6rem 1rem;
|
||||
background: var(--accent);
|
||||
color: var(--surface-dim);
|
||||
font-weight: 600;
|
||||
border-radius: 0 0 0.5rem 0.5rem;
|
||||
text-decoration: none;
|
||||
transition: top 200ms ease;
|
||||
}
|
||||
|
||||
.skip-link:focus {
|
||||
top: 0;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user