[SOLVED] Cannot list posts from section in index when permalinks are configured

I am trying out the permalinks configuration and whenever I enable it for a section, it is impossible to list its posts in my index (home page).

Also I noticed that on http://localhost:1313/page/2/ page/3/ etc the posts are listed as they should be.

If I remove the permalinks configuration from config.toml the posts again are listed as they should be.

What am I doing wrong?

Permalinks settings in config.toml

[permalinks]
  blog = "/:year/:month/:title/"

Range function in /layouts/index.html

  {{ $pag := .Paginate (where .Data.Pages "Type" "blog") }}
  {{ range $pag.Pages }}
    {{ .Render "li" }}
  {{ end }}

Content is organized like this

└── content/
    └── blog/
         └── 2017/
             └── 1.md
             └── 2.md
             └── 3.md

I’m using the Minimo theme and I haven’t really modified its list and index templates.

Turns out a calendar partial that I was using was the culprit.

Removing it fixed my priblem.

I’m closing this thread. Sorry for the noise.