docs(guide): add use of NuxtLayout in app.vue with pages (#5225)

This commit is contained in:
Josee 2022-06-01 00:34:41 +02:00 committed by GitHub
parent 1fda73267a
commit 223adc9bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,6 +65,16 @@ definePageMeta({
</script>
```
And in your `app.vue` you need to wrap the `NuxtPage` component with the `NuxtLayout` component.
```vue{}[app.vue]
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
```
::alert{type=info}
Learn more about [defining page meta](/guide/directory-structure/pages#page-metadata).
::