I want to use the Pages.GroupByParam to group by a param subkey.
Example frontmatter taken from the page.Params docs
{
"date": "2023-10-17T15:11:37-07:00",
"params": {
"author": {
"email": "jsmith@example.org",
"name": "John Smith"
},
"display_related": true
},
"title": "Annual conference"
}
The param I am interested in is author.name and the following code works
{{ .Params.author.name }}
When I try to group pages by the author.name param the page errors out stating the param does not exist.
{{ range .Pages.GroupByParam "author.name" }}
Is there another way to do this?