--- import { SITE } from '@/consts' import { isSubpost } from '@/lib/data-utils' import type { CollectionEntry } from 'astro:content' interface Props { post: CollectionEntry<'blog'> } const { post } = Astro.props const title = post.data.title || SITE.title const description = post.data.description || SITE.description const image = new URL('/static/1200x630.png', Astro.site) const author = post.data.authors && post.data.authors.length > 0 ? post.data.authors.join(', ') : SITE.author --- {`${title} | ${SITE.title}`} {isSubpost(post.id) && } { post?.data.tags && post.data.tags.map((tag: string) => { return }) }