#Help regarding nuxt content

10 messages · Page 1 of 1 (latest)

opaque garnet
tiny drum
#

@opaque garnet Assuming you are using Nuxt 3, try writing it via composition API

opaque garnet
#

I am not an expert with composition api and vue3. I have very basic knowledge of vue2/vue3

tiny drum
#

@opaque garnet you use it as [slug].vue in nuxt 3 🙂

opaque garnet
#

@tiny drum I used your recommendation but it still doesn't the content on localhost:3000/deeplearning/post1 page. It's weird can you please take a look at my code. I would be really thankful 🙏

I used this pages/deeplearning/[slug.vue]

<template>
  <main>
    <ContentDoc v-slot="{ doc }">
      <article>
        <h1>{{ doc.title }}</h1>
        <ContentRenderer :value="doc" />
      </article>
    </ContentDoc>
  </main>
</template>
#

@tiny drum it worked. Thanks