# Range pages inside subsections

**URL:** <https://discourse.gohugo.io/t/range-pages-inside-subsections/19844>\
**Category:** support\
**Created:** [July 27, 2019, 5:23pm UTC](https://discourse.gohugo.io/t/range-pages-inside-subsections/19844 "2019-07-27T17:23:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bronze](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bronze/32/9137_2.png) [@bronze](https://discourse.gohugo.io/u/bronze)\
**Post date:** [July 27, 2019, 5:23pm UTC](https://discourse.gohugo.io/t/range-pages-inside-subsections/19844/1 "2019-07-27T17:23:03Z")

</div>

Hi there.

On this one site i have 3 layers of content. Listing Pages wthat only go a second layer works fine. However, if i have a nested branch bundle my `range` doesnt show the \_index for that section.  
This is my content architecture right now.

```auto
content/
├── _index.md
├── overview
│ ├── _index.md
│ ├── reach
│ │ ├── index.md
│ │ ├── image1.jpg
│ └── media
│ └── index.md
└── impact
    ├── _index.md
    └── actions
        ├── _index.md
        ├── action1
        │ └── index.md
        └── action2
            └── index.md

```

So, when navigating to overview, the following code works:

```auto
{{ range $.Pages }}
  <li>
    <a class="..." href="{{ .RelPermalink | relLangURL }}">{{ .Title }}</a>
  </li>
{{ end }}

```

But it doesnt work under _impact_ (it will not list action’s \_index.md). _.RegularPages_ will only show 3rd level pages, also not the 2nd level branch.  
For now im just using a custom layout with the link hardcoded…

Any ideas?  
cheers

---

<div class="post-metadata">

**Author:** ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)\
**Post date:** [July 27, 2019, 5:30pm UTC](https://discourse.gohugo.io/t/range-pages-inside-subsections/19844/2 "2019-07-27T17:30:49Z")

</div>

This may help: [\_index.md in nested sections](https://discourse.gohugo.io/t/index-md-in-nested-sections/19766/4)

(The part about ranging `.Sections`)

---

<div class="post-metadata">

**Author:** ![bronze](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bronze/32/9137_2.png) [@bronze](https://discourse.gohugo.io/u/bronze)\
**Post date:** [July 27, 2019, 6:03pm UTC](https://discourse.gohugo.io/t/range-pages-inside-subsections/19844/3 "2019-07-27T18:03:37Z")

</div>

Thank you @zwbetz that did the trick!  
Maybe further on il try to automate this instead of calling a different layout but it is much better than hardcoding the link (if only for consistency)
