I can get the menuing to behave sanely, but only when I comment out the “parent =” lines in hugo.toml (and have a flat, rather than nested menu structure)
heres the example code for walking a nested menu as a nested list for a starter: Menu templates
but if you want a popup submenu you will need some more code to get that up.
you will find plenty of examples for javascript or css menus that you need to understand and adapt.
Are there any popular hugo themes to speak of, which have been kept up to date with the latest hugo v0.165.0, and do provide the menu nesting magic out-of-the-box, but don’t go so far as to require or use node.js?
Alas, I tried a bunch of themes, they all either didn’t work with Hugo 0.165.0, or they wanted to pull in dependencies I was wanting to avoid (bootstrap, Dart SCSS, node.js, npm, npx, etc)
#too old theme = 'hugo-universal-theme'
#wants Dart Sass theme = 'FixIt'
#garbage theme = 'port-hugo'
#crashing theme = 'paige'
#tailwind wants node.js theme = "hugo-product-launch"
#effectively identical to ananke theme = "hugo-theme-blunix"
#is only a landing page theme = 'Agnes'
The contributors of themes to Hugo were of course scratching their own itches, and I applaud them for giving back. But virtually none of them seem to really want to follow the original spirit of Hugo, in that it’s a static content generator, which has an original philosophy to avoid or eschew dynamic, complex things like Javascript (in order to minimize “attack surface” to hackers, be performant, have few dependencies, etc)