Skip to content

Layout not applied on page in /pages directory #1779

@bokub

Description

@bokub

Environment

  • Operating System: Linux
  • Node Version: v14.19.1
  • Nuxt Version: 3.0.0
  • Nitro Version: 1.0.0
  • Package Manager: [email protected]
  • Builder: vite
  • User Config: extends, locales, highlight
  • Runtime Modules: -
  • Build Modules: -

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 from app.vue and layouts/default.vue, but when I open the / page, I cannot see the stuff from the default layout, only things from app.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions