--- interface Props { title: string; authors?: string[]; affiliation?: string; published?: string; } const { title, authors = [], affiliation, published } = Astro.props as Props; ---
{authors.length > 0 && (

Authors

{authors.join(', ')}

)} {affiliation && (

Affiliation

{affiliation}

)} {published && (

Published

{published}

)}