Single Template for nested page

Hi,

I have problem, and I cant find solution in Docs :frowning:
Lets say I have content like this:

content
     services
          _index.md
          service1.md
          service2.md
          service3.md

I want to create different layouts for service1, service2 and service3. I was hoping that when I do something like this it will work but its not.

layouts
     services
          list.html
          service1.html
          service2.html
          service3.html

Help

You must set the layout manually for each content.

in service1.md, add:

layout = "service1" 

same with the rest service2, service3, service…

Also, you may want to read this Template Lookup Order

1 Like

Perfect!

Thank you :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.