Skip to content

Conversation

@AntoninPvr
Copy link

@AntoninPvr AntoninPvr commented Nov 25, 2025

Added detection in the sidebar partial for cases where the sidebar is also used as a navbar, i.e., in mobile view.

This workaround use "IsHome" from context. It fix #240 (comment) and partialy #265 (comment)

This workaround isn’t elegant. It would be better to create a new partial, side-navbar.html, that relies on sidebar.html. This would allow crawling through menu.main in hugo.yaml and discovering the subfolders under each section based on each menu path. (Handling nested menus is still an open question.) This refactor will allow to easily fix #497 (comment), #831 (comment) and #449 (comment) by getting weight and name from hugo.yaml

@netlify
Copy link

netlify bot commented Nov 25, 2025

Deploy Preview for hugo-hextra ready!

Name Link
🔨 Latest commit 1f58b0f
🔍 Latest deploy log https://app.netlify.com/projects/hugo-hextra/deploys/69250752c5c8e50008bfd076
😎 Deploy Preview https://deploy-preview-883--hugo-hextra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Successfully merging this pull request may close these issues.

The mobile nav items are different than the normal nav items

1 participant