Add page title
This commit is contained in:
@@ -13,19 +13,19 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const { params } = useRoute();
|
||||
const { params } = useRoute();
|
||||
|
||||
console.log(params);
|
||||
console.log(params);
|
||||
|
||||
const { data: article } = await useAsyncData(
|
||||
`article-${params.slug}`,
|
||||
() => queryCollection("content").path("/articles/" + params.slug).first()
|
||||
);
|
||||
const { data: article } = await useAsyncData(
|
||||
`article-${params.slug}`,
|
||||
() => queryCollection("content").path("/articles/" + params.slug).first()
|
||||
);
|
||||
|
||||
useSeoMeta({
|
||||
title: article.value?.title,
|
||||
description: article.value?.description
|
||||
})
|
||||
useSeoMeta({
|
||||
title: article.value?.title,
|
||||
description: article.value?.description
|
||||
})
|
||||
|
||||
console.log(article);
|
||||
console.log(article);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user