# Layout for subdirectory in section

**URL:** <https://discourse.gohugo.io/t/layout-for-subdirectory-in-section/1651>\
**Category:** support\
**Created:** [September 2, 2015, 9:06pm UTC](https://discourse.gohugo.io/t/layout-for-subdirectory-in-section/1651 "2015-09-02T21:06:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcsenkbeil](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rcsenkbeil/32/652_2.png) [@rcsenkbeil](https://discourse.gohugo.io/u/rcsenkbeil)\
**Post date:** [September 2, 2015, 9:06pm UTC](https://discourse.gohugo.io/t/layout-for-subdirectory-in-section/1651/1 "2015-09-02T21:06:02Z")

</div>

So, I’m still tinkering with the theme (dubbed GridSide) that will be powering my own personal site and noticed that the default list layout is not being applied to subdirectories within a section.

In other words, I have a layout in _layouts/\_default/list.html_ and am trying to access a listing for the subsection in _content/post/test1/_ (where test1 is a directory containing some posts). Visiting _[http://localhost:1313/post/](http://localhost:1313/post/)_ after running _hugo server_ yields a page with my list layout applied. Visiting _[http://localhost:1313/post/test1/](http://localhost:1313/post/test1/)_ shows a page with raw links to the individual content.

I’d post pictures, but new users aren’t allowed to do that.

So, am I missing something? Is there some disclaimer about subsection pages?

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [September 3, 2015, 7:39am UTC](https://discourse.gohugo.io/t/layout-for-subdirectory-in-section/1651/2 "2015-09-03T07:39:41Z")

</div>

Subsection doesn’t exist in Hugo.

---

<div class="post-metadata">

**Author:** ![rcsenkbeil](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rcsenkbeil/32/652_2.png) [@rcsenkbeil](https://discourse.gohugo.io/u/rcsenkbeil)\
**Post date:** [September 3, 2015, 2:26pm UTC](https://discourse.gohugo.io/t/layout-for-subdirectory-in-section/1651/3 "2015-09-03T14:26:41Z")

</div>

Is there a reason that a page is generated at all, then? I would prefer a 404 than a page that I cannot control. Or (and I’ll test this later), am I able to create a layout specifically for a directory in a section?

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [September 3, 2015, 3:37pm UTC](https://discourse.gohugo.io/t/layout-for-subdirectory-in-section/1651/4 "2015-09-03T15:37:04Z")

</div>

> <https://github.com/gohugoio/hugo/issues/1400>
>
> See
> http://discuss.gohugo.io/t/layout-for-subdirectory-in-section/1651
> Maybe 404?

I don’t understand your follow up question. As there are no concept of sub-sections there is no support for layouts in sub-sections (which doesn’t exist).

---

<div class="post-metadata">

**Author:** ![rcsenkbeil](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rcsenkbeil/32/652_2.png) [@rcsenkbeil](https://discourse.gohugo.io/u/rcsenkbeil)\
**Post date:** [September 5, 2015, 4:14am UTC](https://discourse.gohugo.io/t/layout-for-subdirectory-in-section/1651/5 "2015-09-05T04:14:00Z")

</div>

> [@bep](#):
>
> ttp://discuss.gohugo.io/t/layout-for-subdirectory-in-section/1651

Ignore my follow up question.
