-
-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout not applied on page in /pages directory #1779
Comments
Document Driven use For example, in your reproduction, the index page should be written like this
|
That's very clear, thank you! 👍 |
@bokub You may also want to disable document-driven for your custom pages in order to prevent extra unnecessary request, see https://content.nuxtjs.org/guide/writing/document-driven#disable-or-control-the-page-data |
I tried that but then I cannot access navigation 🤷 |
You can keep navigation and disable others: definePageMeta({
documentDriven: {
page: false,
surround: false
}
}) |
Environment
Linux
v14.19.1
3.0.0
1.0.0
[email protected]
vite
extends
,locales
,highlight
-
-
Reproduction
Stackblitz here
Describe the bug
I created a project using content-wind.
I would like to have some logic on my index page, so I created an
index.vue
in the/pages
directory so I have the following files:content/blog/hello.md
layouts/default.vue
pages/index.vue
app.vue
In the
/blog/hello
page, I can see the stuff fromapp.vue
andlayouts/default.vue
, but when I open the/
page, I cannot see the stuff from the default layout, only things fromapp.vue
. Is this normal or is this a bug ?Can I mix both document-driven development and classic pages ?
Thanks 👍
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: