15 lines
342 B
Vue
15 lines
342 B
Vue
|
<script setup>
|
||
|
const { path } = useRoute()
|
||
|
|
||
|
const { data } = await useAsyncData(`content-${path}`, () => {
|
||
|
return queryContent().where({ _path: path }).findOne()
|
||
|
})
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<div class="blog">
|
||
|
<h1 class="">{{ data.title }}</h1>
|
||
|
<p>{{ data.excerpt }}</p>
|
||
|
<ContentDoc class="content" />
|
||
|
</div>
|
||
|
</template>
|