--- import { AstroSeo } from '@astrolib/seo' import type { CollectionEntry } from 'astro:content' import { ViewTransitions } from 'astro:transitions' type Props = Partial> const { slug, data, render } = Astro.props const { title, description, image, seo, code } = data || {} const renderTitle = render && (await render()).headings[0]?.text const mergedTitle = seo?.title || title || renderTitle const mergedDescription = seo?.description || description const mergedImage = (seo?.image || image)?.startsWith('/') ? (Astro.url.origin ?? '' + (seo?.image || image) ?? '') : seo?.image || image ---