# Pagination and group by date

**URL:** <https://discourse.gohugo.io/t/pagination-and-group-by-date/1441>\
**Category:** support\
**Tags:** pagination\
**Created:** [July 15, 2015, 5:04am UTC](https://discourse.gohugo.io/t/pagination-and-group-by-date/1441 "2015-07-15T05:04:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Weston\_McNamee](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/weston_mcnamee/32/540_2.png) [@Weston\_McNamee](https://discourse.gohugo.io/u/Weston_McNamee)\
**Post date:** [July 15, 2015, 9:06pm UTC](https://discourse.gohugo.io/t/pagination-and-group-by-date/1441/3 "2015-07-15T21:06:47Z")

</div>

This reply is very related, but if you would like me to start a new thread, I can.

I’m trying to create a view so that when someone navigates to `http://localhost:1313/2015` they can see all posts in that year, and same with `http://localhost:1313/2015/01/` they can see all posts made in Jan 2015.

Note: `http://localhost:1313/2015/01/test-post/` does render the proper post, but there are no “index.html” files in the 2015 or 01 folders.

I’ve read and reread the following pages on [gohugo.io](http://gohugo.io):

- /templates/list/
- /content/sections/,

and [https://github.com/spf13/hugo/tree/master/examples/blog](https://github.com/spf13/hugo/tree/master/examples/blog).

It seems as though I need to create something like this, but it doesn’t work.

```auto
/layouts/2015/2015.html
/layouts/2015/01/01.html

```

from the example blog, they have `/layouts/indexes/post.html` which I don’t understand entirely, nor does it really do what I’m trying to do. What’s special about the `indexes` folder name, I can’t find that in the documentation.

---

_[View the full topic](https://discourse.gohugo.io/t/pagination-and-group-by-date/1441)._
