We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Questions about Publii

Avatar photo[anonymous]


Hello Ajeet,

What did you do to add an extra menu to the Editorial theme?

I did the following:

a)    I added the “aboutMaurice”: “About Maurice” to the JSON-object “menus”.

The complete code is:
“menus”: {
“mainMenu”: “Main menu”,
“aboutMaurice”: “About Maurice”

b)   In a partial I wrote the following code

{{#if menus.aboutMaurice}}
<p>Menu aboutMaurice exists </p>
<p>Menu aboutMaurice doesn’t exist</p>

But when I run the above I get the message that the menu aboutMaurice doesn’t exits.
Is there still something else I have to do?

Thanks in advance,