# Help for single page section custom layout

**URL:** <https://discourse.gohugo.io/t/help-for-single-page-section-custom-layout/36463>\
**Category:** support\
**Created:** [January 9, 2022, 8:40am UTC](https://discourse.gohugo.io/t/help-for-single-page-section-custom-layout/36463 "2022-01-09T08:40:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enrico\_Ruggieri](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/enrico_ruggieri/32/15977_2.png) [@Enrico\_Ruggieri](https://discourse.gohugo.io/u/Enrico_Ruggieri)\
**Post date:** [January 9, 2022, 8:40am UTC](https://discourse.gohugo.io/t/help-for-single-page-section-custom-layout/36463/1 "2022-01-09T08:40:36Z")

</div>

Hi!

I am in need of some help to figure out what is wrong with my layout folder structure .

This is my layout folder structure:

```auto
.
├── index.html
├── partials
│ └── navigation.html
└── section
    ├── concerts
    │ └── single.html
    ├── concerts.html
...

```

I am trying to use the `single.html` custom layout for rendering the single pages I have in the `content\concerts` section folder. (`concert1.md`, `concert2.md`, etc…).

This is the `content` folder structure:

```auto
.
├── about
│ └── _index.md
├── concerts
│ ├── _index.md
│ ├── concert1.md
│ ├── concert2.md
│ ├── concert3.md
│ └── concert4.md
....

```

Hugo is rendering those single pages using the `theme/THEME/layout/_default/single.html` ignoring the custom template.

I have followed the Template Lookup Order in the docs, but I am probably doing something wrong an I cannot figure it out yet.

Could you please help?

Thank you!

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [January 9, 2022, 10:21am UTC](https://discourse.gohugo.io/t/help-for-single-page-section-custom-layout/36463/2 "2022-01-09T10:21:18Z")

</div>

I suggest placing the templates under `layouts/concerts` and then within said directory create a `list.html` for the section list and a `single.html` for the section’s single pages.

I think that with your current setup Hugo does not pickup the single template under the concerts directory because it encounters the `concerts.html` list template at the same level and processes it first, while ignoring the directory with the same name.

---

<div class="post-metadata">

**Author:** ![Enrico\_Ruggieri](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/enrico_ruggieri/32/15977_2.png) [@Enrico\_Ruggieri](https://discourse.gohugo.io/u/Enrico_Ruggieri)\
**Post date:** [January 9, 2022, 2:20pm UTC](https://discourse.gohugo.io/t/help-for-single-page-section-custom-layout/36463/3 "2022-01-09T14:20:52Z")

</div>

Thank you for quick reply.

I have changed the structure as suggested:

```auto
.
├── index.html
├── partials
│ └── navigation.html
└── section
    ├── concerts
    │ ├── list.html
    │ └── single.html
    └── contacts
        └── list.html

```

Unfortunately still not working. Now the `concerts\list.html` is also ignored, same goes for `contacts`.

Do you know if there are logs or something similar I can check?  
Might be another template file is influencing it?

I read the template debugging docs but I am not sure it would help me at the moment.

Thanks again for all your help.

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [January 9, 2022, 2:37pm UTC](https://discourse.gohugo.io/t/help-for-single-page-section-custom-layout/36463/4 "2022-01-09T14:37:04Z")

</div>

```auto
layouts/
├── concerts/
│ ├── list.html
│ └── single.html
└── _default/
    ├── list.html
    └── single.html

```

If you read [https://gohugo.io/templates/lookup-order/](https://gohugo.io/templates/lookup-order/) you will notice that none of the examples have multiple directories in the path.

---

<div class="post-metadata">

**Author:** ![Enrico\_Ruggieri](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/enrico_ruggieri/32/15977_2.png) [@Enrico\_Ruggieri](https://discourse.gohugo.io/u/Enrico_Ruggieri)\
**Post date:** [January 9, 2022, 3:57pm UTC](https://discourse.gohugo.io/t/help-for-single-page-section-custom-layout/36463/5 "2022-01-09T15:57:29Z")

</div>

Thanks!

For some reason my brain decided that `section` folder needed to be there.

Thank you for your help both of you.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [January 11, 2022, 3:58pm UTC](https://discourse.gohugo.io/t/help-for-single-page-section-custom-layout/36463/6 "2022-01-11T15:58:08Z")

</div>

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