Project with 4 pages, all with diferent layouts


I’ve been trying to create a small Hugo project with 4 or 5 pages but each page has a different layout.

I has trying to create a layouts/section//single.html for each page

content/about/ // page
layouts/section/about/single.html // layout

and repeat that for each page

Don’t know what is the best approach for this, because is not working. Any ideas?


You can also use layout: layoutname in Front Matter and Hugo will use that layout for that page only.