Hello everybody, new to the forum here 
I’m trying to convert a design I made with Html and CSS into my own hugo theme and I am encountering a problem with pagination:
I have in may theme, in the layouts a page folder that contains a blog page. I want to display here a list of 6 blog posts with just image and excerpt plus a link to the actual post.
I manage to do all of that and now I am trying to implement pagination so that if there are more than 6 posts you can move on to the next 6.
I was trying to get the code right for a while before i tried it in a different page (index.html) and found out it was working fine.
I tried putting it into a partial but whenever I call it from the blog page I get a NIL reference.
Is this because the blog page is not in the root folder? Does pagination only work in the Index? can it be adapted for my purposes?
Thank you very much for your help 