diff --git a/contributors.yml b/contributors.yml index 603da5c7be..8f6fd2098a 100644 --- a/contributors.yml +++ b/contributors.yml @@ -76,3 +76,4 @@ - Zehir - programmarchy - koredeycode +- sajjadalis diff --git a/docs/guides/headless-cms/build-static-website/nuxt-3.md b/docs/guides/headless-cms/build-static-website/nuxt-3.md index 45ae9ad36b..482efff562 100644 --- a/docs/guides/headless-cms/build-static-website/nuxt-3.md +++ b/docs/guides/headless-cms/build-static-website/nuxt-3.md @@ -98,7 +98,7 @@ Create a new directory called `pages` and a new file called `index.vue` inside o @@ -128,7 +128,7 @@ of the top-level pages. const { $directus, $readItem } = useNuxtApp() const route = useRoute() -const page = await useAsyncData('page', () => { +const { data: page } = await useAsyncData('page', () => { return $directus.request($readItem('pages', route.params.slug)) }) @@ -159,7 +159,7 @@ Create the following fields in your `posts` data model: - a text input field called `title` - a WYSIWYG input field called `content` - an image relational field called `image` -- a datetime selection field called `published` - set the type to 'date' +- a datetime selection field called `publish_date` - set the type to 'date' - a many-to-one relational field called `author` with the related collection set to `authors` In Roles & Permissions, give the Public role read access to the `authors`, `posts`, and `directus_files` collections. @@ -179,7 +179,7 @@ Inside of the `pages` directory, create a new subdirectory called `blog` and a n