# 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:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KantenKant](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kantenkant/32/19790_2.png) [@KantenKant](https://discourse.gohugo.io/u/KantenKant)\
**Post date:** [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/1 "2023-06-30T18:12:55Z")

</div>

Hello, my second noob question today! Quite a learning curve…

So, my website is done, I have nothing more to change and I simply want to get my finished HTML files.

In my /content/ dir is an index.md, my homepage. I have three subdirectories; /content/about/, /content/page1 and /content/static

All of these subdirectories contain an index.md respectively.

When trying the site locally via `hugo server` everything works absolutely fine. Looks like it should, behaves like it should, all dandy. I can navigate all the individual pages via the header menu just fine.

However, when building using just `Hugo` things stop working all together. The process finishes without any errors and I get my index.html, which looks exactly like it should, however this is the only one of my .md files that actually gets converted. My /content/static folder gets copied to /public/, however my /about/ and /page1/ folders and their index.md files just… don’t exist in /public/.

I’ve been biting my teeth out on this problem for a good 2 hours now, and I really can’t piece together where I’m wrong.

---

<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

```

---

<div class="post-metadata">

**Author:** ![KantenKant](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kantenkant/32/19790_2.png) [@KantenKant](https://discourse.gohugo.io/u/KantenKant)\
**Post date:** [June 30, 2023, 6:26pm UTC](https://discourse.gohugo.io/t/hugo-is-only-generating-a-single-html-file-and-ignores-all-subfolders-of-content/45080/3 "2023-06-30T18:26:14Z")

</div>

… I feel really stupid. It works now, very thankful for your quick help!

Maybe it’s time for a break and some sleep, I don’t think I’m functioning correctly anymore.

---

<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:27pm UTC](https://discourse.gohugo.io/t/hugo-is-only-generating-a-single-html-file-and-ignores-all-subfolders-of-content/45080/4 "2023-06-30T18:27:25Z")

</div>

> [@KantenKant](#):
>
> I feel really stupid

You’re not. It’s a subtle distinction.
