Skip to content

Page icon does not appear in sidebar #5322

@bilal-fazlani

Description

@bilal-fazlani

Context

No response

Bug description

When using page icons, icon does not appear in navigation sidebar when using nested nav.
But It does appear on top navigation bar on non mobile view.

Related links

Example hosted reproduction https://bilal-fazlani.com/

Reproduction

example.zip

Steps to reproduce

mkdocs yaml

nav:
  - Home: index.md
  - Blog:
      - blog/index.md
  - Projects: projects/index.md

docs/blog/index.md

---
icon: fontawesome/solid/blog
---

preview in large width

image

Here, the icon is displayed at two places. Makes sense.

But if we reduce the width to simulate mobile view,

The image is displayed only at one place

Browser

Chrome

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolved by config changeIssue can be mitigated by the reporter

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions