I am trying to create a page for a taxonomy that groups pages by the first letter of the title. For this, I created layouts/projects/taxonomy.html, that calls layouts/partials/projects/GroupByTitleFirstLetter.html to perform the grouping, any everything works fine.
However, I cannot seem to paginate the results using .Paginate
, because it expects Pages
but receives a []map[string]interface{}
. I found it weird, because I thought the pagination worked also with the grouping functions, and if I am not mistaken, they return a slice of strucs containing Key
and Pages
, right?
Anyway, when I then tried to simply paginate the pages of the taxonomy on the page, the result was always nil
. I checked if .Paginate
is used in the theme, but it only seems to be used in layout/index.html
, and if I am not mistaken, it should not interfere with the generation of a taxonomy page, right?
Could you please help me find a way to paginate those results?