HUGO

Strange build issue - Not all files are getting included

Only the index.html file is getting built.

$ 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  
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

Please post the output of tree content/.

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

mv content/index.md content/_index.md

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

1 Like

Thanks again!

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