# Previous in Series and Next In Series links

**URL:** https://discourse.gohugo.io/t/previous-in-series-and-next-in-series-links/2654
**Category:** support
**Created:** [February 9, 2016, 8:56pm UTC](https://discourse.gohugo.io/t/previous-in-series-and-next-in-series-links/2654 "2016-02-09T20:56:40Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![doctorallen](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@doctorallen](https://discourse.gohugo.io/u/doctorallen)
#### Post date: [February 10, 2016, 1:30pm UTC](https://discourse.gohugo.io/t/previous-in-series-and-next-in-series-links/2654/6 "2016-02-10T13:30:13Z")

</div>

@alexandros  
This doesn’t work as it displays a link to the next post under the section, which in the documentation is defined as the top level folder directly under content:

```auto
.
└── content
    ├── post
    | ├── firstpost.md // <- http://1.com/post/firstpost/
    | ├── happy
    | | └── ness.md // <- http://1.com/post/happy/ness/
    | └── secondpost.md // <- http://1.com/post/secondpost/
    └── quote
        ├── first.md // <- http://1.com/quote/first/
        └── second.md // <- http://1.com/quote/second/

```

In this case, post and quote are both sections.

However, my content tree looks like this:

```auto
.
└── content
    ├── blog
    | ├── firstpost.md // <- http://1.com/post/firstpost/
    | ├── happy
    | | └── ness.md // <- http://1.com/post/happy/ness/
    | | └── stuff.md // <- http://1.com/post/happy/stuff/
    | └── secondpost.md // <- http://1.com/post/secondpost/
    

```

And I only want the links to show up on ness and stuff pages, and they only have links to posts under “happy” but that is considered the “slug” and not a Section. So basically you need a .NextInSubSection, or .NextInSlug variable.

---

_[View the full topic](https://discourse.gohugo.io/t/previous-in-series-and-next-in-series-links/2654)._
