# Headless Pages Still Rendering

**URL:** <https://discourse.gohugo.io/t/headless-pages-still-rendering/44135>\
**Category:** support\
**Created:** [April 28, 2023, 6:32pm UTC](https://discourse.gohugo.io/t/headless-pages-still-rendering/44135 "2023-04-28T18:32:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jswtch](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jswtch/32/8984_2.png) [@jswtch](https://discourse.gohugo.io/u/jswtch)\
**Post date:** [April 28, 2023, 6:32pm UTC](https://discourse.gohugo.io/t/headless-pages-still-rendering/44135/1 "2023-04-28T18:32:44Z")

</div>

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

```auto
my_section/_headless_content/
my_section/content_a/
my_section/content_b/
...
my_section/content_n/

```

where `_headless_content` looks like this

```auto
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!

---

<div class="post-metadata">

**Author:** ![jswtch](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jswtch/32/8984_2.png) [@jswtch](https://discourse.gohugo.io/u/jswtch)\
**Post date:** [April 28, 2023, 6:50pm UTC](https://discourse.gohugo.io/t/headless-pages-still-rendering/44135/2 "2023-04-28T18:50:02Z")

</div>

Updating the front matter works as shown below.

```auto
headless: true
_build:
  list: "never"
  publishResources: true
  render: "never"

```

I am not sure why `headless: true` doesn’t work, or when I might want `headless: true` but _not_ `render: "never"`

Reference:

```auto
_build
 render: never

The page will not be included in any page collection.

```

```auto
headless: true

A headless bundle is a bundle that is configured to not get published anywhere:

    It will have no Permalink and no rendered HTML in public/.
    It will not be part of .Site.RegularPages, etc.

```
