Hi there,
It’s difficult to say without seeing your code, but I’m guessing you probably want .Site.RegularPages
instead of .Site.Pages
. See the docs here: https://gohugo.io/variables/site/#site-pages
Also have a look at Requesting Help to see how to make it easier to ask for help in the forums.