# Hugo does not build content in subdirectories

**URL:** <https://discourse.gohugo.io/t/hugo-does-not-build-content-in-subdirectories/13410>\
**Category:** support\
**Created:** [August 7, 2018, 3:14pm UTC](https://discourse.gohugo.io/t/hugo-does-not-build-content-in-subdirectories/13410 "2018-08-07T15:14:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![genpc](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@genpc](https://discourse.gohugo.io/u/genpc)\
**Post date:** [August 7, 2018, 3:14pm UTC](https://discourse.gohugo.io/t/hugo-does-not-build-content-in-subdirectories/13410/1 "2018-08-07T15:14:51Z")

</div>

Hello everybody,

I installed Hugo and built my own theme - however, my pages below the first level are only generated by hugo server -w when they are created while the server is running.

My directory structure:

- config.toml  
…
- theme/
- content/
  - example/
    - www/
      - index.md (is generated)
      - contact.md (not generated)
      - about/
        - index.md (not generated)

    - docs/
      - index.md (is generated)
      - wiki/
        - index.md (not generated)

  - example2/
    - testsite.md (is generated)

My config.toml file:

> languageCode = “en-us”  
> baseURL = “[http://example.net](http://example.net)”  
> title = “My Title”  
> theme = “mycustomtheme”
> 
> [params]

The theme only contains a single html file inside \_default/single.html and some partials. I enabled verbose and debug logging and the pages are not rendered - If I am recreating them, they are rendered and displayed properly, so it does not look like a theme problem to me.

I would be happy if someone could give me a hint.

Best Regards,

---

<div class="post-metadata">

**Author:** ![Jura](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jura/32/13581_2.png) [@Jura](https://discourse.gohugo.io/u/Jura)\
**Post date:** [August 7, 2018, 3:32pm UTC](https://discourse.gohugo.io/t/hugo-does-not-build-content-in-subdirectories/13410/2 "2018-08-07T15:32:03Z")

</div>

> [@genpc](#):
>
> I enabled verbose and debug logging and the pages are not rendered - If I am recreating them, they are rendered and displayed properly

What does ‘recreating them’ mean? If you mean remove the page and make it anew, then I don’t get why the problem persists – just remove the page and make them anew to solve it. But it probably isn’t that simple 🙂. So you probably mean something else with ‘recreating’.

Also, I supposed you double-checked that none of the posts are set to draft, or have a publication date that’s in the future?

---

<div class="post-metadata">

**Author:** ![genpc](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@genpc](https://discourse.gohugo.io/u/genpc)\
**Post date:** [August 7, 2018, 3:35pm UTC](https://discourse.gohugo.io/t/hugo-does-not-build-content-in-subdirectories/13410/3 "2018-08-07T15:35:28Z")

</div>

Recreating means deleting the page and creating it again - unfortunately this does not solve the problem since this only helps until you restart hugo - the pages are also not built.

I am running `hugo server -D --watch --verbose --debug` to serve the pages - I don’t have neither draft nor a publication date set in the page title.

EDIT: I copied the same page which is generated and only renamed it before restarting Hugo - it is not build either so I don’t think that the page itself is the problem.

---

<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:** [August 7, 2018, 3:44pm UTC](https://discourse.gohugo.io/t/hugo-does-not-build-content-in-subdirectories/13410/4 "2018-08-07T15:44:34Z")

</div>

You need to read about bundles in the documentation.

---

<div class="post-metadata">

**Author:** ![genpc](https://avatars.discourse-cdn.com/v4/letter/g/858c86/32.png) [@genpc](https://discourse.gohugo.io/u/genpc)\
**Post date:** [August 7, 2018, 4:02pm UTC](https://discourse.gohugo.io/t/hugo-does-not-build-content-in-subdirectories/13410/5 "2018-08-07T16:02:20Z")

</div>

Looks like renaming my index.md files to \_index.md solved the problem, thank you very much!
