Fix Loading... title in blog post
This commit is contained in:
@@ -22,9 +22,11 @@ const config = useRuntimeConfig();
|
|||||||
const baseUrl = config.public.baseUrl
|
const baseUrl = config.public.baseUrl
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|
||||||
const { data: post } = await useAsyncData(route.path, () => {
|
// const { data: post } = await useAsyncData(route.path, () => {
|
||||||
return queryCollection('posts').path(route.path).first()
|
// return queryCollection('posts').path(route.path).first()
|
||||||
})
|
// })
|
||||||
|
|
||||||
|
const { data: post } = await useAsyncData(() => queryCollection('posts').path(route.path).first())
|
||||||
|
|
||||||
const ogUrl = config.public.baseUrl + route.path
|
const ogUrl = config.public.baseUrl + route.path
|
||||||
useSeoMeta({
|
useSeoMeta({
|
||||||
|
|||||||
Reference in New Issue
Block a user