The following warehouse address can reproduce the demonstration of this situation. There are relevant descriptions in the content file.
The main thing is that after executing the hugo command, only the first-level page file is generated. The pages of the second-level or third-level content file are not automatically generated. You need to edit the corresponding content file in watch mode to generate the corresponding page file.
The following command can be run directly through npm. If you don’t mind, you can manually port it to hugo native mode for use.
Sorry, I don’t have the ability to show how to use hugo in the official mode of hugo. I think it should be universal because it has always been very useful.
hugo v0.132.2-3fd26c70dff5934ec1802b9563530130ed1bca75+extended windows/amd64 BuildDate=2024-08-14T16:17:21Z VendorInfo=gohugoio