feat(site): focus Mission Core story and center product carousels

This commit is contained in:
DCCONSTRUCTIONS
2026-11-05 20:25:24 +03:00
parent d22c738cc4
commit 5ef2e41d9e
55 changed files with 2284 additions and 3961 deletions
+7
View File
@@ -443,6 +443,13 @@ async function renderBlock(block, renderCounts) {
}
const templateName = block.template;
// Old CMS blocks can adopt the shared carousel without adding every optional field.
if (["project-video-detail.html", "project-composition.html"].includes(templateName)) {
block = { ...block, content: { mediaKind: "", note: "", modules: [], ...block.content } };
block.content.sliderItems = (block.content.sliderItems || []).map(item => ({
description: "", imageSrc: "", imageAlt: "", videoSrc: "", posterSrc: "", ...item,
}));
}
const renderCount = renderCounts.get(templateName) ?? 0;
renderCounts.set(templateName, renderCount + 1);