List template for given path

Here is example from docs

http://1.com/post/happy/ness.html
http://1.com/post/happy/less.html

“post” is a section. “post/happy” is a path. Which template serves http://1.com/post/happy url? I want to list all posts under same http://1.com/post/happy path (ness.html and less.html)

Check the template lookup order, specifically single page templates.

There are not currently nested sections, so in your example post is the section, and happy, ness and less are all content in the post section.

If you want to list content you’ve placed inside the happy directory at /post/happy/ you are going to need to mess around with a shortcode or similar. Search these forums for nested sections and read up on how other folks have rendered that. :slight_smile:

1 Like