<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>