Why is the blog menu item not underlined when reading a blog post?

I have a very basic vanilla site using paperMod theme, and I create a blog post under /content/blog/post.md but when I read any blog post the Blog menu item is no longer underlined as active. It’s only active when I click the Blog menu item and list all the posts.

The menu is defined in config.yml as languages.en.menu.main[].identifier, name, pageRef, weight.

That’s a CSS question, not a Hugo one

You need to take this up with the theme author:

Their menu implementation does not capture ancestors.

The example from the documentation adds an “active” class to the current page, and an "ancestor"class to ancestors. See https://gohugo.io/templates/menu-templates/#example.


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.