Confused about headless files

I was under the assumption that when you adjust a content file to headless: true, the url of the page cannot be reached.

I have the following content structure

  • content
    – dutch
    — legal

The content of is as follows:

title: Legal
headless: true

But when I type the url it shows my standard list template. Of course without data in it, but I don’t want / legal to be reachable, but only / legal / security to be reachable

Am I missing something or running into a bug? I have the most recent version of hugo running 0.61.0

Sections (aka “”) cannot be headless.

1 Like