Refonte complète en SvelteKit (méthode OKI, AI-Overview ready)

Reconstruit le site statique mono-page (Bulma + htmx + Strapi) en SvelteKit 2 +
Svelte 5 (runes) + TypeScript, 100 % statique (adapter-static), auto-hébergé.

- Contenu enrichi à partir du dossier documentaire sourcé : 28 pages (histoire,
  Mé 67, procès 1968, 9 fiches militants, idéologie, héritage, publications,
  charte, orientation, sources, FAQ, actualités, contact, mentions légales).
- Souveraineté : retrait de Bulma/htmx/mustache/ionicons/Plausible/Google Fonts
  et de l'API Strapi. Polices Archivo/Inter et sprite SVG auto-hébergés (zéro emoji).
- Identité GONG (drapeau vert/blanc/rouge), thème sombre par défaut + clair AA,
  cadences motion gwoka, KineticText, timeline, 404 kréyòl, PWA hors-ligne.
- SEO/AI-Overview : HTML sémantique, JSON-LD (Organization, Person, Event,
  FAQPage, Article...), hreflang, sitemap dynamique, robots/humans.txt.
- Sécurité : CSP hachée + en-têtes (.htaccess o2switch + _headers Cloudflare), HSTS.
- Actualités éditées via Sveltia CMS (git-based) ; Strapi retiré.

npm run build : vert · npm run check : 0 erreur / 0 warning · JS 97 Ko gzip.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
sucupira
2026-07-24 23:57:37 -04:00
co-authored by Claude Opus 4.8
parent b89c1a80b7
commit cd9b9b093c
104 changed files with 14569 additions and 1383 deletions
+48
View File
@@ -0,0 +1,48 @@
import { SITE, membres } from '$lib/data/gong';
import { getActualites } from '$lib/server/actualites';
export const prerender = true;
const statiques: { path: string; priority: string; changefreq: string }[] = [
{ path: '/', priority: '1.0', changefreq: 'monthly' },
{ path: '/histoire/', priority: '0.9', changefreq: 'yearly' },
{ path: '/me-67/', priority: '0.9', changefreq: 'yearly' },
{ path: '/proces-1968/', priority: '0.8', changefreq: 'yearly' },
{ path: '/militants/', priority: '0.8', changefreq: 'yearly' },
{ path: '/ideologie/', priority: '0.7', changefreq: 'yearly' },
{ path: '/heritage/', priority: '0.7', changefreq: 'yearly' },
{ path: '/publications/', priority: '0.6', changefreq: 'yearly' },
{ path: '/charte/', priority: '0.7', changefreq: 'yearly' },
{ path: '/orientation/', priority: '0.7', changefreq: 'yearly' },
{ path: '/sources/', priority: '0.6', changefreq: 'yearly' },
{ path: '/faq/', priority: '0.8', changefreq: 'monthly' },
{ path: '/actualites/', priority: '0.6', changefreq: 'weekly' },
{ path: '/contact/', priority: '0.4', changefreq: 'yearly' },
{ path: '/mentions-legales/', priority: '0.2', changefreq: 'yearly' }
];
export function GET() {
const today = new Date().toISOString().slice(0, 10);
const urls: string[] = [];
for (const s of statiques) {
urls.push(
`<url><loc>${SITE.url}${s.path}</loc><lastmod>${today}</lastmod><changefreq>${s.changefreq}</changefreq><priority>${s.priority}</priority></url>`
);
}
for (const m of membres) {
urls.push(`<url><loc>${SITE.url}/militants/${m.slug}/</loc><lastmod>${today}</lastmod><changefreq>yearly</changefreq><priority>0.6</priority></url>`);
}
for (const a of getActualites()) {
urls.push(`<url><loc>${SITE.url}/actualites/${a.slug}/</loc><lastmod>${a.iso}</lastmod><changefreq>monthly</changefreq><priority>0.5</priority></url>`);
}
const xml = `<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
${urls.join('\n')}
</urlset>`;
return new Response(xml, {
headers: { 'Content-Type': 'application/xml', 'Cache-Control': 'max-age=3600' }
});
}