Homepage _index.org peculiar behavior

When we ask for a sample repo it is best that it is setup so that the issue can be reproduced straight away.

In the link that you shared, all content files, including the homepage _index.md were drafts, also you had omitted the theme setting from the project’s config.

After fixing the above I saw that in the homepage template there is the following statement:

{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}

You have not specified any mainSections in the config, therefore the Section with the most content files is picked up to populate the homepage list, in this case the ibrarys Section.

What do you want to display on your homepage?

Also have a look at the following page in the documentation:

1 Like