Thanks for the workaround. I do agree that the documentation is not clear or the code is not working for single pages.
The docs and example for
sectionPagesMenu works for Home (/), and sections (e.g. /posts/) and section pages (e.g. /posts/my-post-title/) but not for something like (/about/).
The docs for
.IsMenuCurrent https://gohugo.io/functions/ismenucurrent/#readout states:
.IsMenuCurrentis a method in
Pageobject returning a boolean value. It returns
trueif the PAGE is the same object as the
.Pagein MENUENTRY in a given MENU.
Why then does a menu entry for
/about/ not return true for the page
/about/? I tried to troubleshoot but I got a bit lost in the codebase.