--- // Port of preview/pages/maps.html (layout: default). // Liquid: {% for map in maps %} — card maps span a full-width column with no // card-body; non-card maps get a card-body with a title. import DefaultLayout from '@shared/layouts/DefaultLayout.astro'; import Map from '@shared/components/ui/Map.astro'; import maps from '@data/maps.json'; type MapData = { title?: string; card?: boolean }; const mapEntries = Object.entries(maps as Record); ---
{ mapEntries.map(([mapId, data]) => data.card ? (
) : (
{data.title}
), ) }