The theme adds a new Breadcrumb support, you can config it using
breadcrumb in Frontmatter and themeConfig Support page config , the default value is
Without any config, a Breadcrumb that matches the theme color is displayed at the top of the page content to help the reader understand the document structure.
You can also control the icon display of the path navigation using
breadcrumbIcon field Support page config, the default value is
To ensure Breadcrumb working well, the
readme.md file should be included in each folder.
Otherwise, the path navigation will automatically ignore that level because the component can not generate titles and links from the corresponding level folder.
Page config support
Support local configurationSupport page config means that the theme allows the configuration of the page to override the global configuration.↩︎
Take path navigation as an example:
This feature is enabled globally by default, that is,
trueby default, and you can set
breadcrumb: falsein the Front Matter of a specific page to disable it locally.
Of course, you can also set the
falseto disable it globally, and set
breadcrumb: truein the Front Matter of a specific page to enable it locally.