--- import type { Post } from '../schemas/posts' import Metadata from './Metadata.astro' interface Props { entry: Post } const { entry } = Astro.props const Excerpt = entry.excerpt --- {entry.title} {typeof Excerpt === 'string' ? Excerpt : entry.excerpt}