Skip to content

Option to hide icons in sidebar while keeping icon field in frontmatter #2901

@F0rgenet

Description

@F0rgenet

What problem will this feature address?

I'm using the icon field in MDX frontmatter for internal metadata and custom components, but I don't want icons to appear in the left sidebar navigation. Currently there's no straightforward way to keep icon data in frontmatter while disabling its rendering in the sidebar.

Describe the solution you'd like

Add a configuration option in DocsLayout sidebar settings to disable icon rendering, for example:

sidebar: {
  hideIcons: true
}

Or a way to filter/transform sidebar items without affecting the underlying page tree metadata.

Describe alternatives you've considered

  • Manually overriding sidebar rendering
  • Not using icon field in frontmatter (but need it for other purposes)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions