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.