# Hugo is only generating a single html file and ignores all subfolders of /content/

**URL:** <https://discourse.gohugo.io/t/hugo-is-only-generating-a-single-html-file-and-ignores-all-subfolders-of-content/45080>\
**Category:** support\
**Created:** [June 30, 2023, 6:12pm UTC](https://discourse.gohugo.io/t/hugo-is-only-generating-a-single-html-file-and-ignores-all-subfolders-of-content/45080 "2023-06-30T18:12:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 30, 2023, 6:20pm UTC](https://discourse.gohugo.io/t/hugo-is-only-generating-a-single-html-file-and-ignores-all-subfolders-of-content/45080/2 "2023-06-30T18:20:26Z")

</div>

> [@KantenKant](#):
>
> In my /content/ dir is an index.md

Sections, including the home page, should have `_index.md` files instead of `index.md` files.

[https://gohugo.io/content-management/page-bundles/](https://gohugo.io/content-management/page-bundles/)

Example

```plaintext
content/
├── posts/
│ ├── post-1/
│ │ ├── a.jpg
│ │ ├── b.jpg
│ │ └── index.md <-- indicates leaf bundle  
│ ├── _index.md <-- indicates branch bundle / section
│ ├── post-2.md
│ └── post-3.md
└── _index.md <-- home page

```

---

_[View the full topic](https://discourse.gohugo.io/t/hugo-is-only-generating-a-single-html-file-and-ignores-all-subfolders-of-content/45080)._
