--- import type { CollectionEntry } from 'astro:content'; import { formatDate } from '@/utils/date'; import { getReadingTime } from '@/utils/reading-time'; interface Props { post: CollectionEntry<'posts'>; } const { post } = Astro.props; const readingTime = getReadingTime(post.body); ---

{post.data.title}

{post.data.category}

{post.data.description}

ยท {readingTime}
{post.data.tags.length > 0 && (
{post.data.tags.map((tag, index) => ( #{tag}{index < post.data.tags.length - 1 ? ', ' : ''} ))}
)}