# Exclude categories from paginator

**URL:** <https://discourse.gohugo.io/t/exclude-categories-from-paginator/1817>\
**Category:** support\
**Tags:** pagination\
**Created:** [October 2, 2015, 6:28am UTC](https://discourse.gohugo.io/t/exclude-categories-from-paginator/1817 "2015-10-02T06:28:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vanellope](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@Vanellope](https://discourse.gohugo.io/u/Vanellope)\
**Post date:** [October 2, 2015, 6:28am UTC](https://discourse.gohugo.io/t/exclude-categories-from-paginator/1817/1 "2015-10-02T06:28:16Z")

</div>

In my home page I am listing the first 15 articles with this code:

```
{{ range first 15 .Data.Pages }}
  {{ .Render "li" }}
{{ end }}

```

I want to exclude any pages found in the root of my `./content` directory.

A) How can I modify this to exclude any md files in the root path of `./content`?

B) Alternatively I can move the md files in the root of the `./content` path to a specific exclude subfolder if that would make it possible. Anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [October 2, 2015, 6:56am UTC](https://discourse.gohugo.io/t/exclude-categories-from-paginator/1817/2 "2015-10-02T06:56:20Z")

</div>

Your title doesn’t match the question, but you can either turn it around and include types or section in the where clause, or set a type on the root content and exclude on that.

---

<div class="post-metadata">

**Author:** ![Vanellope](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@Vanellope](https://discourse.gohugo.io/u/Vanellope)\
**Post date:** [October 2, 2015, 3:57pm UTC](https://discourse.gohugo.io/t/exclude-categories-from-paginator/1817/3 "2015-10-02T15:57:29Z")

</div>

Thanks bep. Can you give me an example on how to exclude a type? Thank you!
