--- import Base from '../../layouts/Base.astro'; import SectionBanner from '../../components/SectionBanner.astro'; import RecordRow from '../../components/RecordRow.astro'; import Icon from '../../components/Icon.astro'; import { internalBySection, internalRootPages, internalHref } from '../../lib/internal'; import { url } from '../../lib/url'; const groups = await internalBySection(); const rootPages = await internalRootPages(); const totalPages = groups.reduce((n, g) => n + g.count, 0) + rootPages.length; const sha = groups[0]?.index?.data.sha ?? groups[0]?.items[0]?.data.sha ?? ''; /* Same rotation as the payloads index, started on this section's own hue so the two mirrors never open on the same colour. */ const ACCENTS = ['pine', 'foam', 'iris', 'gold', 'rose', 'love']; ---
{groups.map((g, i) => ( ))} {rootPages.map((p, i) => ( ))}