# Strange build issue - Not all files are getting included

**URL:** <https://discourse.gohugo.io/t/strange-build-issue-not-all-files-are-getting-included/35055>\
**Category:** support\
**Created:** [October 7, 2021, 9:19pm UTC](https://discourse.gohugo.io/t/strange-build-issue-not-all-files-are-getting-included/35055 "2021-10-07T21:19:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nacalo8191](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@nacalo8191](https://discourse.gohugo.io/u/nacalo8191)\
**Post date:** [October 7, 2021, 9:19pm UTC](https://discourse.gohugo.io/t/strange-build-issue-not-all-files-are-getting-included/35055/1 "2021-10-07T21:19:38Z")

</div>

Only the index.html file is getting built.

```auto
$ hugo
Start building sites … 
hugo v0.87.0+extended linux/amd64 BuildDate=unknown

                   | EN  
-------------------+-----
  Pages | 10  
  Paginator pages | 0  
  Non-page files | 0  
  Static files | 3  
  Processed images | 0  
  Aliases | 0  
  Sitemaps | 1  
  Cleaned | 0  

```

```auto
hugo -D --debug
Start building sites … 
hugo v0.87.0+extended linux/amd64 BuildDate=unknown
INFO 2021/10/07 22:15:24 syncing static files to /home/xxx/Desktop/xxx.com/public/
DEBUG 2021/10/07 22:15:25 Render page PAGETITLEHERE to "/index.html"
DEBUG 2021/10/07 22:15:25 Render page SITENAMEHERE to "/index.html"
DEBUG 2021/10/07 22:15:25 Render XML for "sitemap" to "/sitemap.xml"
DEBUG 2021/10/07 22:15:25 Render page SITENAMEHERE to "/index.xml"
DEBUG 2021/10/07 22:15:25 Render Robots Txt to "robots.txt"

                   | EN  
-------------------+-----
  Pages | 10  
  Paginator pages | 0  
  Non-page files | 0  
  Static files | 3  
  Processed images | 0  
  Aliases | 0  
  Sitemaps | 1  
  Cleaned | 0  

```

The only time I can get it to render the other pages is with `hugo server` and modifying one of the files (rename, WRITE) which gets them to be build correctly.

Any help with this would be greatly appreciated

---

<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:** [October 7, 2021, 9:31pm UTC](https://discourse.gohugo.io/t/strange-build-issue-not-all-files-are-getting-included/35055/2 "2021-10-07T21:31:58Z")

</div>

Please post the output of `tree content/`.

---

<div class="post-metadata">

**Author:** ![nacalo8191](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@nacalo8191](https://discourse.gohugo.io/u/nacalo8191)\
**Post date:** [October 7, 2021, 9:39pm UTC](https://discourse.gohugo.io/t/strange-build-issue-not-all-files-are-getting-included/35055/3 "2021-10-07T21:39:11Z")

</div>

> [@jmooring](#):
>
> `$ tree content/` .

````auto
tree content/.
content/.
├── about.md
├── creditor
│ ├── XXXX XXX (01 XXX).md
│ └── _index.md
└── index.md

1 directory, 4 files```

Words replaced for privacy but where you see `X` that's an A-Z character
````

---

<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:** [October 7, 2021, 9:41pm UTC](https://discourse.gohugo.io/t/strange-build-issue-not-all-files-are-getting-included/35055/4 "2021-10-07T21:41:18Z")

</div>

`mv content/index.md content/_index.md`

---

<div class="post-metadata">

**Author:** ![nacalo8191](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@nacalo8191](https://discourse.gohugo.io/u/nacalo8191)\
**Post date:** [October 7, 2021, 9:44pm UTC](https://discourse.gohugo.io/t/strange-build-issue-not-all-files-are-getting-included/35055/5 "2021-10-07T21:44:55Z")

</div>

Thank you so much! Mind explaining where I went wrong out of curiosity?

---

<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:** [October 7, 2021, 9:47pm UTC](https://discourse.gohugo.io/t/strange-build-issue-not-all-files-are-getting-included/35055/6 "2021-10-07T21:47:51Z")

</div>

> [@Naming content files: index.md vs \_index.md vs foo.md](https://discourse.gohugo.io/t/naming-content-files-index-md-vs-index-md-vs-foo-md/24043):
>
> A (hopefully) helpful guide to users new to Hugo about what the differences are between index.md, \_index.md and foo-bar.md, and how these relate to what layout files are being used. I like to start with the question: Where will this page live in my site? Take a common example: an "About Us" page. I want it to live in yoursite.com/about-us/. Any of these three options\*\* will generate a page at yoursite.com/about-us/: content/about-us.md content/about-us/index.md content/about-us/\_index.md B…

---

<div class="post-metadata">

**Author:** ![nacalo8191](https://avatars.discourse-cdn.com/v4/letter/n/9dc877/32.png) [@nacalo8191](https://discourse.gohugo.io/u/nacalo8191)\
**Post date:** [October 7, 2021, 10:22pm UTC](https://discourse.gohugo.io/t/strange-build-issue-not-all-files-are-getting-included/35055/7 "2021-10-07T22:22:01Z")

</div>

Thanks again!

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [October 9, 2021, 10:22pm UTC](https://discourse.gohugo.io/t/strange-build-issue-not-all-files-are-getting-included/35055/8 "2021-10-09T22:22:49Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
