Skip to content

hide: - path in front matter does not hide the navigation path #6705

@Valerie-ts

Description

@Valerie-ts

Context

I use breadcrumbs in my documentation, but want to hide them on the index page of my folders.
The option to hide bradcrumbs on single pages was introduced as part of 9.0.5-insiders-4.28.1, see #4875.

Bug description

The front matter of a file contains hide: - path, but the navigation path is still shown on the page.
image

Related links

Reproduction

9.5.6+insiders.4.52.0-hide-breadcrumbs.zip

Steps to reproduce

  1. Add the following configuration to the mkdocs.yml file:
theme:
  name: material
  features:
     - navigation.path
  1. Create a folder "breadcrumbs" in the /docs directory.
  2. Create a new index.md file in the folder.
  3. Add the following front matter:
---
hide:
  - path
---
  1. Serve the project.

Browser

No response

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions