Error in link mainlmenu

I think you’ve mixed up a few things.

  1. There shouldn’t be front matter in a layout template https://github.com/ValentinChevoleau/ValentinHUGOLEARN/blob/master/themes/perso/layouts/nous.html
  2. You need something in the /content directory which uses the nous.html page layout. To do this, you’ll need to set type = nous in the front matter.
  3. I’m pretty sure you need to put your nous.html layout (with front matter removed) in either the blog or _default directory.

See Are sections used for layout lookup when a page has a custom content type? for some helpful pointers (and there’s other threads on this topic to be found too.)

1 Like