--- 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', }); } ---
    { entries.map((entry) => (
  1. {story && entry.chapter && (

    {entry.chapter}

    )}

    {entry.position} {entry.name ? ` · ${entry.name}` : ''}

    {entry.location &&

    {entry.location}

    } {entry.highlights.length > 0 && (
      {entry.highlights.map((highlight) => (
    • {highlight}
    • ))}
    )} {story && entry.aside &&

    {entry.aside}

    }
  2. )) }