Thank you for such a quick response.
I had the .pages in there because of something on this comment here - Error Passing Data into Partials
which said that it needs .pages if you’ve passed in a variable via the partial call - have I confused partial with shortcode? I was just following along blindly rather than understanding the meaning behind it.
I’ve removed .pages but it still gives error calling len: len of untyped nil
unfortunately!