--- import Widget from "./Widget.astro"; import { timeline, type TimelineType } from "@/data/timeline"; const isDate = (d: string) => /^\d{4}/.test(d); const typeLabel: Record = { career: "career", education: "education", cert: "cert", project: "project", homelab: "homelab", }; ---
    {timeline.map((entry) => (
  1. {isDate(entry.date) ? : {entry.date} } · {typeLabel[entry.type]}

    {entry.title}

    {entry.description}

    {entry.tags && entry.tags.length > 0 && (

    {entry.tags.join(" · ")}

    )}
  2. ))}