Hugo not generating pages at all

Hi,

I’m testing out Hugo (repository here), and I have a bunch of leaf bundles which aren’t getting generated. Curiously enough, it creates a folder for the post in public if there’s anything other than the index.md file, for example, for odd-radio-circles it creates the folder and copies the image. In the debug output it says it’s generating the pages when it actually isn’t -

soumikgh@rpi:~/test_hugo_install $ hugo --debug
Start building sites …
hugo v0.96.0-2fd4a7d3d6845e75f8b8ae3a2a7bd91438967bbb linux/arm64 BuildDate=2022-03-26T09:15:58Z VendorInfo=gohugoio
INFO 2022/04/07 20:35:30 syncing static files to /home/soumikgh/test_hugo_install/public/
DEBUG 2022/04/07 20:35:30 Render page Tabbys Star to "/tabbys-star/index.html"
DEBUG 2022/04/07 20:35:30 Render page Test Blog to "/index.html"
DEBUG 2022/04/07 20:35:30 Render page Categories to "/categories/index.html"
DEBUG 2022/04/07 20:35:30 Render page Odd Radio Circles to "/odd-radio-circles/index.html"
DEBUG 2022/04/07 20:35:30 Render page Posts to "/posts/index.html"
DEBUG 2022/04/07 20:35:30 Render page Tags to "/tags/index.html"
DEBUG 2022/04/07 20:35:30 Render XML for "sitemap" to "/sitemap.xml"
DEBUG 2022/04/07 20:35:30 Render 404 page to "/404.html"
DEBUG 2022/04/07 20:35:30 Render page Test Blog to "/index.xml"
DEBUG 2022/04/07 20:35:30 Render page Categories to "/categories/index.xml"
DEBUG 2022/04/07 20:35:30 Render page Posts to "/posts/index.xml"
DEBUG 2022/04/07 20:35:30 Render page Tags to "/tags/index.xml"

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

Total in 99 ms
soumikgh@rpi:~/test_hugo_install $ ls -al public
total 52
drwxr-xr-x 10 soumikgh soumikgh 4096 Apr  7 20:35 .
drwxr-xr-x 11 soumikgh soumikgh 4096 Apr  7 20:25 ..
-rw-r--r--  1 soumikgh soumikgh    0 Mar 27 20:29 .gitkeep
-rw-r--r--  1 soumikgh soumikgh 1869 Apr  7 20:35 404.html
drwxr-xr-x  2 soumikgh soumikgh 4096 Apr  7 20:35 categories
drwxr-xr-x  3 soumikgh soumikgh 4096 Apr  7 20:25 css
drwxr-xr-x  3 soumikgh soumikgh 4096 Mar 29 10:29 images
-rw-r--r--  1 soumikgh soumikgh 2068 Apr  7 20:35 index.html
-rw-r--r--  1 soumikgh soumikgh 1032 Apr  7 20:35 index.xml
drwxr-xr-x  2 soumikgh soumikgh 4096 Apr  7 20:25 js
drwxr-xr-x  2 soumikgh soumikgh 4096 Apr  7 20:35 odd-radio-circles
drwxr-xr-x  2 soumikgh soumikgh 4096 Apr  7 20:35 posts
-rw-r--r--  1 soumikgh soumikgh    0 Apr  7 20:35 sitemap.xml
drwxr-xr-x  2 soumikgh soumikgh 4096 Apr  7 20:35 tags
drwxr-xr-x  3 soumikgh soumikgh 4096 Apr  7 20:25 tipuesearch
soumikgh@rpi:~/test_hugo_install $ ls -al public/posts
total 12
drwxr-xr-x  2 soumikgh soumikgh 4096 Apr  7 20:35 .
drwxr-xr-x 10 soumikgh soumikgh 4096 Apr  7 20:35 ..
-rw-r--r--  1 soumikgh soumikgh 1239 Apr  7 20:35 index.xml
soumikgh@rpi:~/test_hugo_install $ ls -al public/odd-radio-circles/
total 192
drwxr-xr-x  2 soumikgh soumikgh   4096 Apr  7 20:35 .
drwxr-xr-x 10 soumikgh soumikgh   4096 Apr  7 20:35 ..
-rw-r--r--  1 soumikgh soumikgh 184648 Apr  7 20:35 ORC1_MeerKAT.jpg

I feel like I’m missing something fundamental. Any help will be appreciated.

Your theme expects your “posts” to be in the “post” (singular) directory.

2 Likes

Ah, that was a simple fix. I had even looked at my theme’s exampleSite directory and noticed it had post but I didn’t think much of it.

Thank you!

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