hannoeru / vite-plugin-pages

File system based route generator for ⚡️Vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MD file routing configuration

itmanyong opened this issue · comments

Description

You can configure the route information such as meta and PATH in the MD file, just like the route content in the. Vue file.
For example, 1: the /about route generated by about. MD, however, cannot be configured with a valid layout attribute. As a result, the layout of all MD routes is the default layout.

Suggested solution

You are advised to set the --********-- header of MD files to meta by default or set meta fields separately to provide meta values

Alternative

No response

Additional context

image

Validations

  • Follow the Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

This is out of scope of this project, so I will close this issue.

But you can still get those route info by using extendRoute option. example