--- import type { Work } from '../lib/resume'; interface Props { entries: Work[]; /** Show the site-only story fields (chapter, aside). Off for the resume. */ story?: boolean; } const { entries, story = false } = Astro.props; function formatDate(value?: string | null): string { if (!value) return 'Present'; const date = new Date(`${value}-01T00:00:00Z`); if (Number.isNaN(date.getTime())) return value; return date.toLocaleDateString('en-US', { month: 'short', year: 'numeric', timeZone: 'UTC', }); } ---
{entry.chapter}
)}{entry.location}
} {entry.highlights.length > 0 && ({entry.aside}
}