<template>
  <div class="bg-neutral">
    this is a component page
    <div class="max-w-3xl mx-auto">
      <h2>{{ page.title }}</h2>
      <nuxt-content :document="page" />
    </div>
  </div>
</template>

<script>
export default {
  async asyncData({ $content, route }) {
    const page = await $content(route.path).fetch()

    return {
      page,
    }
  },
}
</script>

<style lang="scss" scoped></style>
