--- import Comments from '@/components/Comments/index.astro' import PostTime from '@/components/PostTime.astro' import { getMultiLangPostRoutes } from '@/i18n/route' import Layout from '@/layouts/Layout.astro' import { checkSlugDuplication } from '@/utils/content' import { generateDescription } from '@/utils/description' import { getCollection } from 'astro:content' export async function getStaticPaths() { const posts = await getCollection('posts') const duplicates = await checkSlugDuplication(posts) if (duplicates.length > 0) { throw new Error(`Slug conflicts found:\n${duplicates.join('\n')}`) } return getMultiLangPostRoutes(posts) } const { lang } = Astro.params const { post, supportedLangs = [] } = Astro.props const description = generateDescription(post) const { Content, remarkPluginFrontmatter } = await post.render() ---

{post.data.title}

{post.data.tags && post.data.tags.length > 0 && (
{post.data.tags.map(tag => ( {tag} ))}
)}