hextra icon indicating copy to clipboard operation
hextra copied to clipboard

The mobile nav items are different than the normal nav items

Open jerrytomato opened this issue 1 year ago • 4 comments

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.

jerrytomato avatar Nov 12 '24 19:11 jerrytomato

+1 this

akristen avatar Nov 22 '24 18:11 akristen

see also #449

imfing avatar Dec 08 '24 12:12 imfing

+100 on this

QUANDINI-byte avatar May 08 '25 06:05 QUANDINI-byte

+1 Huge issue actually, you can not control what users see at all :(

lecramr avatar Sep 12 '25 11:09 lecramr