I’ve just launched my new web site, www.marcocevoli.com and I was wondering what is the right procedure to hide a menu item in a multilingual environment.
I mean, if I want to hide the Blog section from the English version of my site, how do I do that?
(The above site is currently in Italian only, partially translated to Spanish.)
Thanks in advance,
Well, I was bit tired, I must admit…
I’ve created the translated page blog.es.md and set “published” to “false”.
Is it really that simple? I think I’m still missing something…
For anyone else interested, you can also check if
p.home is true or false (assuming you are looping through a page collection using the var
p) in Twig to then not display the Homepage link in the menubar. This works in multi-language, while checking for a slug etc. may not.