--- import { Badge } from '@/components/ui/badge' import { Separator } from '@/components/ui/separator' import { formatDate, parseAuthors, readingTime } from '@/lib/utils' import { Image } from 'astro:assets' import type { CollectionEntry } from 'astro:content' import Link from './Link.astro' type Props = { entry: CollectionEntry<'blog'> } const { entry } = Astro.props as { entry: CollectionEntry<'blog'> } const formattedDate = formatDate(entry.data.date) const readTime = readingTime(entry.body) const authors = await parseAuthors(entry.data.authors ?? []) ---
{ entry.data.image && (
{entry.data.title}
) }

{entry.data.title}

{entry.data.description}

{formattedDate} {readTime}
{ entry.data.tags && (
{entry.data.tags.map((tag) => ( {tag} ))}
) }