-
Notifications
You must be signed in to change notification settings - Fork 54
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
Submenu page #55
Comments
I have never done a sub menu and frankly I don't remember how I implemented menus. I think I might have used the built-in template. But let me see what I can do tonight and if it actually supports sub-menus. |
I was asking because as far as I read your template it has submenus, but there were no examples. I'll may give it a try, too. |
The theme does not have submenus. Neither in the navigation bar nor in the sidebar. I do not know enough about CSS to make it happen. But a template (for sidebar that can be modified for navigation bar) is here: https://gohugo.io/templates/menu-templates/. But to add submenus, you have to do something like this. The top menu gets an [[menu.sidebar]]
Name = "External link to example.com"
URL = "https://example.com"
weight = 10
identifier = "example" Submenus are added normally with a [[menu.sidebar]]
Name = "submenu1"
URL = "https://example.com"
weight = 10
parent = "example"
[[menu.sidebar]]
Name = "submenu2"
URL = "https://example.com"
weight = 20
parent = "example" |
I had spent hours trying to find a working example of a Hugo theme that handles submenus, and a working example how to arrange the content so that I see a working submenu. As far as I understand your theme handles submenues.
Would it be possible to include an inserted submenu with a static page under the Individual Page 1 item?
The text was updated successfully, but these errors were encountered: