Two different layouts for lists with the same type depending on the front matter layout


I’m trying to have tow diffent layouts for lists with the same type.

Here is my setup:

The Front Matter:

type: "myType"
layout: "customList"

The layout directory content:


Still, the page is created with the layout/myType/list.html template and note with the customList.html.

Thanks for your help!

Ps: Hugo v0.27.1

Hi Yacir,

I am fresh to hugo, and I’m dealing with the same issue. Did you find any way to do this?