--- import { Image } from "astro:assets"; import Markdown from "../../islands/Markdown.jsx"; const { section, index } = Astro.props; const hasImage = !!section.image; const reverse = index % 2 === 1; const sectionImages = import.meta.glob<{ default: ImageMetadata }>( "/src/assets/sections/**/*.{png,jpg,jpeg,webp,avif}", { eager: true }, ); let sectionImage: ImageMetadata | null = null; if (section.image) { const path = `/src/assets/sections/${section.image}`; const mod = sectionImages[path]; if (mod) sectionImage = mod.default; } ---
{ sectionImage && ( {section.title} ) }

{section.title}

{ section.button && ( ) }