# Range one level of subpages and subdirectories?

**URL:** <https://discourse.gohugo.io/t/range-one-level-of-subpages-and-subdirectories/35801>\
**Category:** support\
**Created:** [November 28, 2021, 8:33pm UTC](https://discourse.gohugo.io/t/range-one-level-of-subpages-and-subdirectories/35801 "2021-11-28T20:33:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![earnestma](https://avatars.discourse-cdn.com/v4/letter/e/71e660/32.png) [@earnestma](https://discourse.gohugo.io/u/earnestma)\
**Post date:** [November 28, 2021, 8:33pm UTC](https://discourse.gohugo.io/t/range-one-level-of-subpages-and-subdirectories/35801/1 "2021-11-28T20:33:06Z")

</div>

Is it possible to list/ range only one level of subpages/ subdirectories for both list/ single pages? I have a directory structure that is something like this:

```auto
❯ tree content 
content
├── _index.md
└── wiki
    ├── a
    │ ├── _index.md
    │ ├── test2.md
    │ ├── test3
    │ │ └── _index.md
    │ └── test.md
    ├── b
    │ ├── file.md
    │ └── _index.md
    ├── c.md
    └── _index.md

```

Thanks!

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [November 28, 2021, 8:58pm UTC](https://discourse.gohugo.io/t/range-one-level-of-subpages-and-subdirectories/35801/2 "2021-11-28T20:58:35Z")

</div>

`range .Pages` is what you need.

> `.Pages`
> 
> Collection of _regular_ pages and _only first-level_ section pages under the current _list_ page.

See more here: [Page variables | Hugo](https://gohugo.io/variables/page/#pages-compared-to-sitepages)
