# SOLVED: Single.html vs list.html

**URL:** <https://discourse.gohugo.io/t/solved-single-html-vs-list-html/150>\
**Category:** support\
**Created:** [September 30, 2014, 9:22pm UTC](https://discourse.gohugo.io/t/solved-single-html-vs-list-html/150 "2014-09-30T21:22:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![spf13](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/spf13/32/37_2.png) [@spf13](https://discourse.gohugo.io/u/spf13)\
**Post date:** [September 30, 2014, 10:06pm UTC](https://discourse.gohugo.io/t/solved-single-html-vs-list-html/150/2 "2014-09-30T22:06:38Z")

</div>

You aren’t the first to be confused here. I think the confusion comes from a single behavior in Hugo.

If content type is not specified, the section name will be used as the content type.

This behavior comes from how people generally organize their content.

A section is the first directory under root. In your case it is “post”… we will call this postSection for clarification.

A type is assigned via the front matter. It’s entirely possible for a given section to have content of different types in it. For convenience purposes if a type isn’t defined it will take the section name as type… In this case “post”. We will call it postType for clarification.

For any given type Hugo looks in /layouts/TYPENAME/single.html to render it.

Additional [views](http://gohugo.io/templates/views/) of that type can also be placed in that directory, for instance a summary view would be /layouts/TYPENAME/summary.html

When Hugo is called to render a section it looks for /layouts/section/SECTIONNAME.html .

While I did consider having Hugo look at TYPENAME/list.html, after some thought it was apparent to me that this would be even more confusing. Why would a type list need to handle content of other types. By keeping the layout for a section in /layouts/section it kept this separation which reinforced the idea that a section can contain many types.

I hope this clarifies things.

---

_[View the full topic](https://discourse.gohugo.io/t/solved-single-html-vs-list-html/150)._
