Trying around with a single page site, which uses content files to better structure the content.
The current structure looks like this:
content/index/team.md
content/index/team/$members.md
layout/index/single.html <-- empty
layout/index/list.html <-- empty
layout/index.html <-- single page site magic
The page can be built fine from the content files for now. This is done by ranging through all pages, with the right section “index” etc.
Now the question is how to prevent these content files from being shown to the public.
/index/team/ already returns 404s
/index/ still returns 200s
/sitemap.xml lists all pages (even empty or 404ing pages)
Only issue left seems to be that /index/ renders and doesn’t return a 404. Even so list.html and single.html are both empty and therefore the site should be empty (which it is) and return a 404 as empty pages shouldn’t be generated afaik.
List pages still return empty html (should be 404):
/index/
/de/index/
This seems to be due to an index.xml file being created within these directories.
Unfortunately using DisableRSS did not work and even if it did, this option would only be global, which is not preferable.