1
0
Fork 0
ryanmoon.com/pages/blog/.!.[slug].vue

15 lines
342 B
Vue
Raw Normal View History

2023-07-11 06:03:57 +00:00
<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>