Hey everyone,
I’m creating a website that basically just consists of one long home page with »aspects« and »topics«. To better structure everything, I organise the content of the homepage through content files:
content
- aspects
- aspect1.md
- aspect2.md
- topics
- topic1.md
- topic2.md
The topics and aspects should not have their own page rendered. I only display the content by looping over site.Pages like this:
{{ range where site.Pages "Section" "topics" }}
{{ partial "topic.html" . }}
{{ end }}
Everything is working fine except that I get the message: found no layout file for "HTML" for kind "page". I then used disableKinds = ["page"] but that results in the content also no longer displayed through site.Pages.
So my question is: How do I prevent Hugo from creating pages for every content file, while still being able to access it through site.Pages?
Thanks so much!