--- import { Icon } from 'astro-icon/components'; import type { HomeSection } from '../../lib/data'; import Card from '../Card.astro'; import ExternalLink from '../ExternalLink.astro'; import Section from '../Section.astro'; import SectionHeading from '../SectionHeading.astro'; export interface Props { section: Extract; alt: boolean; } const { section, alt } = Astro.props; const headingId = `${section.id}-title`; const display = (href: string) => { const u = new URL(href); return (u.host + u.pathname).replace(/^www\./, '').replace(/\/$/, ''); }; ---
    {section.items.map((item) => (
  • {item.title}

    {item.description &&

    {item.description}

    }

    {display(item.href)}

  • ))}