Skip to content

1.x version self layout no use,but the 0.x normal #1321

@leach-chen

Description

@leach-chen

Bug report

Version

1.x-alpha

Steps to reproduce

What is expected?

Custom Layout for Specific Pages
By default the content of each *.md file is rendered in a

container, along with the sidebar, auto-generated edit links and prev/next links. If you wish to use a completely custom component in place of the page (while only keeping the navbar), you can again specify the component to use using YAML front matter:


layout: SpecialLayout


This will render .vuepress/components/SpecialLayout.vue for the given page.

Follow the official tutorial to use a custom layout in the md file

What is actually happening?

1.x version self layout no use,but the 0.x normal

Other relevant information

  • Your OS: windows
  • Node.js version: v10.15.1
  • Browser version: chrome72
  • Is this a global or local install? local install
  • Which package manager did you use for the install?yarn

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementRequest to enhance an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions