const {
params: { postSlug, categorySlug },
} = useRoute()
const path = `/${categorySlug}/${postSlug}`
const post = await queryContent(path).locale(locale.value).findOne()
if (!post) {
throw createError({
statusCode: 404,
fatal: true,
})
}