imfing / hextra

🔯 Modern, batteries-included Hugo theme for creating beautiful doc, blog and static websites
https://imfing.github.io/hextra/
MIT License
742 stars 177 forks source link

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

Open jerrytomato opened 1 week ago

jerrytomato commented 1 week ago

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.

akristen commented 3 days ago

+1 this