Feat: header article avec date + boutons de partage, share section bas de page, golden-grid conditionnel
All checks were successful
Deploy / Deploy to Production (push) Successful in 18s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-03-10 19:19:05 +01:00
parent b9631b8c53
commit 3c5b4f76dd
10 changed files with 178 additions and 28 deletions

View file

@ -28,8 +28,16 @@ async function loadSlide(path) {
// Sub-page: resolve to parent slide (ex: /blog/slug → /blog)
if (idx === -1) {
const parentPath = path.replace(/\/[^/]+$/, "");
idx = slides.getIndexByPath(parentPath);
if (idx !== -1) slidePath = parentPath;
if (parentPath && parentPath !== path) {
const parentIdx = slides.getIndexByPath(parentPath);
if (parentIdx !== -1) {
idx = parentIdx;
slidePath = parentPath;
} else if (!siteInitialized) {
// Slides not yet initialized — assume sub-page, fetch parent to bootstrap
slidePath = parentPath;
}
}
}
if (idx !== -1) {