Skip to content

The mobile nav items are different than the normal nav items #497

Open
@jerrytomato

Description

@jerrytomato

Description

There's some strange behavior where the sidebar contents are rendered for the navigation in mobile view. This is not expected behavior and it should instead render the same menu defined for the site.

Steps To Reproduce

Just create a normal page with a title, and the title will be used for the mobile name, while the nav item name is used for the desktop nav.

Expected Behavior

The mobile nav should display the nav .Name as defined in the hugo.yaml file, not the page's title.

Actual Behavior

It shows the title of the page in mobile view, and .Name in desktop view. This makes it impractical to assign a title to a page as it has to be the same thing as the .Name in order to avoid confusing behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions