Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.
If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.
I do not have a repository - it is create new site, get a theme, adjust archetype\default.md so draft: false, set theme line in config.toml and create two pages as explained on the Quick Start page.
Everything is basically created by Hugo but the dates seem fine to me test1 is fine, test2 created a few seconds later doesn’t appear.
Very strange there must be something I fundamentally do not understand or I can’t read which could be correct as I have tried everything over the past couple of days and I have got the problem simplified to this.
So, as you should have found above, it is picking the FIRST section alphabetically.
It was a coincidence it was the one you created first.
Add this to your config.toml
[params]
mainSections = ["sub1", "sub2", "sub3"]
And it should show any of the subsections named.
I went through the quickstart.
By default it is expecting content in a “post” folder, you can see that from the exampleSite provided with the theme.
Check out the homepage index.html layout for exactly how it is working in this theme.
{{/* Define a section to pull recent posts from. For Hugo 0.20 this will default to the section with the most number of pages. */}}
The alphabetical check also explains why during testing it seemed to change around but it was always just one directory that appeared the others were not processed - I just tried to simplify the problem and find a way to reproduce and explain it. The solution is as marked I needed to include mainSections in the config.toml. Much appreciated.