I have a simple site for which the Hugo command fails to render the content of the only section. It renders the home page correctly. I’ve used Hugo for other sites with no problems.
Repo: https://github.com/drh/web-drhanson
content/baldy_chutes
is the section in question.
The same behavior happens when I run the Hugo server. But if I touch content/baldy_chutes/_index.md
, the server renders the section (and the entire site) correctly. When I quit and restart the server, I must retouch _index.md
again.
The hugo list all
command shows only the home page:
% hugo list all
path,slug,title,date,expiryDate,publishDate,draft,permalink,kind,section
content/index.md,,David R. Hanson,2024-06-24T14:25:28-06:00,0001-01-01T00:00:00Z,2024-06-24T14:25:28-06:00,false,https://drhanson.net/,home,
When I build the site with hugo
, nothing in content/baldy_chutes
is rendered and there are no errors:
% hugo --logLevel=info
Start building sites …
hugo v0.128.2+extended darwin/arm64 BuildDate=2024-07-04T08:13:25Z VendorInfo=brew
INFO static: removing all files from destination that don't exist in static dirs
INFO static: syncing static files to / duration 7.534ms
INFO build: step process substep collect files 57 files_total 57 pages_total 1 resources_total 56 duration 16.373166ms
INFO build: step process duration 17.853167ms
INFO build: step assemble duration 244.042µs
INFO build: step render substep pages site en outputFormat html duration 8.591958ms
INFO build: step render pages 1 content 1 duration 8.667375ms
INFO build: step render deferred count 0 duration 500ns
INFO build: step postProcess duration 3.125µs
INFO build: duration 26.860542ms
| EN
-------------------+-----
Pages | 6
Paginator pages | 0
Non-page files | 51
Static files | 41
Processed images | 0
Aliases | 0
Cleaned | 0
Total in 39 ms
Notice that the 3rd and 7th log message say there’s 1 page, but the summary says there are 6.
Finally, here’s the environment info:
% hugo env
hugo v0.128.2+extended darwin/arm64 BuildDate=2024-07-04T08:13:25Z VendorInfo=brew
GOOS="darwin"
GOARCH="arm64"
GOVERSION="go1.22.5"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.3.2"