# Can a Section sub-folder define a Type

**URL:** <https://discourse.gohugo.io/t/can-a-section-sub-folder-define-a-type/6411>\
**Category:** support\
**Created:** [May 1, 2017, 10:36pm UTC](https://discourse.gohugo.io/t/can-a-section-sub-folder-define-a-type/6411 "2017-05-01T22:36:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nevf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nevf/32/3061_2.png) [@nevf](https://discourse.gohugo.io/u/nevf)\
**Post date:** [May 1, 2017, 10:36pm UTC](https://discourse.gohugo.io/t/can-a-section-sub-folder-define-a-type/6411/1 "2017-05-01T22:36:52Z")

</div>

I understand a Section defines a Type as per: [https://gohugo.io/content/sections/](https://gohugo.io/content/sections/) and that we can specify Type in Frontmatter.

However I wonder if there is a way to enable a Section’s sub-folder to specify a Type so I don’t need to specify it in Frontmatter,

ex. Files located in `/content/home/features/` would have a type of `features` instead of `home`

---

<div class="post-metadata">

**Author:** ![rdwatters](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/rdwatters/32/2848_2.png) [@rdwatters](https://discourse.gohugo.io/u/rdwatters)\
**Post date:** [May 1, 2017, 11:51pm UTC](https://discourse.gohugo.io/t/can-a-section-sub-folder-define-a-type/6411/2 "2017-05-01T23:51:57Z")

</div>

@nevf what you’re talking about here is really nested sections, which is not currently supported but IS on the Hugo roadmap. Until then, and I’m not 100% sure on what you’re trying to accomplish, Hugo won’t assume a type based on a subsection, so your best bet is to manually declare the type in your front matter…

---

<div class="post-metadata">

**Author:** ![nevf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nevf/32/3061_2.png) [@nevf](https://discourse.gohugo.io/u/nevf)\
**Post date:** [May 1, 2017, 11:59pm UTC](https://discourse.gohugo.io/t/can-a-section-sub-folder-define-a-type/6411/3 "2017-05-01T23:59:22Z")

</div>

@rdwattersThanks, yes I am declaring the type in the frontmatter, but being lazy and liking to write less code I was looking for a shortcut. 🙂

FYI my home page is made up of a number of sub-sections using partials and each one is a different type.

Good to hear nested sections are on the Road map.
