--- import { type CollectionEntry } from "astro:content"; import BaseLayout from "$layouts/BaseLayout.astro"; import FormattedDate from "$components/Helper/FormattedDate.astro"; import { getBlogPosts } from "src/utils"; import BlogPost from "$layouts/BlogPost.astro"; import BlueskyCommentsLikes from "$components/BlueskyCommentsLikes/BlueskyCommentsLikes.astro"; export async function getStaticPaths() { const posts = await getBlogPosts(); return posts.map((post: any) => ({ params: { slug: post.slug }, props: post, })); } type Props = CollectionEntry<"blog">; const post = Astro.props; const { Content } = await post.render(); --- { post.data.customLayout ? ( ) : (
{post.data.tags?.map((tag: string) => (
{tag}
))}

{post.data.title}

) }