<div class="title">
<h1>{title}</h1>
<div class:list={[
"info",
(author || pubDate || updatedDate) && "mb-8"
]}>
<div class="flex items-center gap-2 justify-center">
{author &&
<Icon name="mdi:account" />
<span>{author}</span>
<span>·</span>
}
{pubDate &&
<Icon name="mdi:calendar-month" />
<FormattedDate date={pubDate} />
}
{updatedDate && (
<div class="last-updated-on">
Last updated on <FormattedDate date={updatedDate} />
</div>)
}
</div>
</div>
<hr/>
</div>
Is there any better to write this component