# Adjacent page not created in leaf bundle

**URL:** <https://discourse.gohugo.io/t/adjacent-page-not-created-in-leaf-bundle/53112>\
**Category:** support\
**Tags:** taxonomy\
**Created:** [January 13, 2025, 1:02pm UTC](https://discourse.gohugo.io/t/adjacent-page-not-created-in-leaf-bundle/53112 "2025-01-13T13:02:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![VMX](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VMX](https://discourse.gohugo.io/u/VMX)\
**Post date:** [January 13, 2025, 1:02pm UTC](https://discourse.gohugo.io/t/adjacent-page-not-created-in-leaf-bundle/53112/1 "2025-01-13T13:02:47Z")

</div>

Hi all.

Not sure what’s wrong with my website, but for some reason one of my .md files is not rendered as an .html page at all.

Here’s my folder structure:

```auto
content
  |-- projects
         |-- project 1
         | |-- index.md
         | |-- privacy-policy.md
         |-- _index.md

```

My `projects` page correctly shows a list page, right now with just one `Project 1` on the list.

If I click on `Project 1`, the `index.md` page for `Project 1` is correctly rendered at `/projects/project1/`.

From the `Project 1` page, I have a markdown link that looks like this: `[Privacy Policy](privacy-policy)`, as I understand the privacy policy page html should be rendered at `/projects/project1/privacy-policy/`.

However, when I click that link I get a 404 page. I have also checked my public folder and I can see no trace of the `privacy-policy` page anywhere in the HTML files.

The `_index.md` at the root of the `/projects` folder has no content other than the `title` variable set in the front matter. Both the `index.md` and the `privacy-policy.md` files inside `/project1` are normal pages with no relevant stuff in the frontmatter. Tried setting their layout to `single` or just removing the layout variable, but it made no difference.

Is there anything wrong with this taxonomy? Or is this correct and I can assume the issues are coming from my theme?

---

<div class="post-metadata">

**Author:** ![chrillek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/chrillek/32/19797_2.png) [@chrillek](https://discourse.gohugo.io/u/chrillek)\
**Post date:** [January 13, 2025, 1:42pm UTC](https://discourse.gohugo.io/t/adjacent-page-not-created-in-leaf-bundle/53112/2 "2025-01-13T13:42:23Z")

</div>

Check out the documentation re page bundles. Your MD file can only be accessed as a page resource because it resides in a _leaf_ bundle, it will not be automagically converted to HTML. So, it’s not available, as you have noticed already.

---

<div class="post-metadata">

**Author:** ![VMX](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VMX](https://discourse.gohugo.io/u/VMX)\
**Post date:** [January 13, 2025, 2:33pm UTC](https://discourse.gohugo.io/t/adjacent-page-not-created-in-leaf-bundle/53112/3 "2025-01-13T14:33:58Z")

</div>

I had looked through it, but I can’t figure out what I’m doing wrong.

According to [this doc page](https://gohugo.io/content-management/page-bundles/), my site has the same structure as the “leaf bundle” example, which includes some folders containing an `index.md` alongside a few more `.md` files that I assume are available as pages in that same directory. E.g.: `content-1.md` and `content-2.md` inside `/my-post/`.

What would I need to chance to make my page accessible under `projects/project1/privacy-policy/`?

I’m sorry if this is obvious, but I’ve been looking for a while and I can’t see what I’m missing 😅

---

<div class="post-metadata">

**Author:** ![chrillek](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/chrillek/32/19797_2.png) [@chrillek](https://discourse.gohugo.io/u/chrillek)\
**Post date:** [January 13, 2025, 3:18pm UTC](https://discourse.gohugo.io/t/adjacent-page-not-created-in-leaf-bundle/53112/4 "2025-01-13T15:18:42Z")

</div>

Perhaps this recent post helps:

> [@Page resources with a ResourceType of "page" are not published](https://discourse.gohugo.io/t/page-resources-with-a-resourcetype-of-page-are-not-published/52827/6):
>
> With the exception of the index file, all of the files in a leaf bundle are [page resources](https://gohugo.io/content-management/page-resources/). Each page resource has a [ResourceType](https://gohugo.io/methods/resource/resourcetype/). content/ ├── leaf-bundle-1/ │ ├── a.jpg \<-- page resource with ResourceType = image │ ├── b.md \<-- page resource with ResourceType = page │ └── index.md ├── leaf-bundle-2/ │ ├── c.jpg \<-- page resource with ResourceType = image │ └── index.md └── \_index.md Hugo supports six [content formats](https://gohugo.io/content-management/formats/). Page resources with any of these [media types](https://gohugo.io/content-management/formats/) have a R…

---

<div class="post-metadata">

**Author:** ![VMX](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VMX](https://discourse.gohugo.io/u/VMX)\
**Post date:** [January 13, 2025, 3:39pm UTC](https://discourse.gohugo.io/t/adjacent-page-not-created-in-leaf-bundle/53112/5 "2025-01-13T15:39:22Z")

</div>

Thanks, I can see the issue although there’s no “clean” solution apparently.

Ultimately, what I did was move the `privacy-policy.md` file to the root of my content directory, so it does get published. I tried to move it just one level up to the `/projects/` folder, but then it shows as a project in the projects lists which is not what I want.

Once it’s at the root of `/content/`, I set its `url` parameter in the frontmatter to the location where I actually want it published:

```auto
---
url: /projects/project1/privacy-policy/
---

```

Very ugly from a site organization perspective, but it works.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [January 13, 2025, 3:56pm UTC](https://discourse.gohugo.io/t/adjacent-page-not-created-in-leaf-bundle/53112/6 "2025-01-13T15:56:06Z")

</div>

???

Why don’t you just rename `projects/project-1/index.md` to `projects/project-1/_index.md`?

---

<div class="post-metadata">

**Author:** ![VMX](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@VMX](https://discourse.gohugo.io/u/VMX)\
**Post date:** [January 13, 2025, 4:09pm UTC](https://discourse.gohugo.io/t/adjacent-page-not-created-in-leaf-bundle/53112/7 "2025-01-13T16:09:49Z")

</div>

That’s the first thing I tried.

But for some reason, when I do that my Projects page (at `/content/projects/`) shows up empy. No projects, just the title of the page with no content under it.

Furthermore, if I try to browse manually to `/content/projects/project1/` it no longer shows the contents of `/content/projects/project1/_index.md`. Instead, it shows a list, with the `privacy-policy` page as the only item in that list.

Not sure if my theme is now broken due to past customizations.
