ERROR 2017/11/15 12:13:19 Error while rendering "home": template: theme/index.html:6:15: executing "theme/index.html" at <.Data.Pages.GroupByP...>: error calling GroupByParam: There is no such a param
I can do this easily if I put the section order number into the archetype of each post type. But I would not like to repeat it and instead just put it into the _index.md of each content subdirectory. Is that not a good idea?
I also tried to add the order numer from the _index.md into the .Site.Pages array by doing something like this, but I could not get it to work:
range apply .Site.Pages "union" "." "($.Site.GetPage "section" .Type).Params.ordering"
In this way I wanted to add the ordering number to each page.