Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jerrytomato opened this issue Nov 12, 2024 · 1 comment
Open

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

jerrytomato opened this issue Nov 12, 2024 · 1 comment

Comments

@jerrytomato
Copy link

jerrytomato commented Nov 12, 2024

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
Copy link

+1 this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants