Make HasMenuCurrent return true for $sectionMenuEntry.IsAncestor($pageMenuEntry) #8776
Comments
bep
added a commit
to bep/hugo
that referenced
this issue
Jul 20, 2021
bep
added a commit
to bep/hugo
that referenced
this issue
Jul 20, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We currently have the
sectionPagesMenusetting which in a roundabout way does the above, but it's rather clumsy and I suspect added before we got a proper data structure in this area. For one thing, it makes it hard for themes to make it working out-of-the-box.I think we can retire that setting by being a little bit smarter about it, that is:
config.toml)HasMenuCurrent.The text was updated successfully, but these errors were encountered: