Another way to make a menu item active

Could you post the code for your navigation or a link to your repo? Then I can test it locally.

I am using the code I posted above—and multilingual menus are working.

Thanks again for your time.

Partial navigation https://github.com/jonathanulco/hugo-multilang/blob/master/layouts/partials/navigation.html
Config https://github.com/jonathanulco/hugo-multilang/blob/master/config.toml
And /content https://github.com/jonathanulco/hugo-multilang/tree/master/content

No problem!

Ok. Now I know what the problem is: In _baseof.html just replace

{{ partialCached "header" . }}

with

{{ partial "header" . }}

The header partial needs to be rendered for every page.

2 Likes

It’s work, thank you !

A post was split to a new topic: Add another section to Cupper theme