I am using a custom theme. I am reading docs on headless and .DisableKinds, but I am still having issues.
I have a section structure like this
my_section/_headless_content/
my_section/content_a/
my_section/content_b/
...
my_section/content_n/
where _headless_content
looks like this
my_section/_headless_content/a.md
my_section/_headless_content/b.md
...
my_section/_headless_content/n.md
I am using custom layouts to create my section pages as desired (.GetPage…). However, I notice that these headless pages are still being rendered.
www.mysite.com/my_section/_headless_content/x
is still being created despite setting headless: true
in the front matter.
Is there an error? How do I prevent these pages from being rendered? Thanks!