Hi there,
There have been a lot of changes to Hugo. Some of these changes may be considered breaking, depending on what version of Hugo you were previously using vs the version you updated to.
I would suggest trying .Site.RegularPages
: https://gohugo.io/variables/page/#pages-compared-to-sitepages
and if this doesn’t help, have a read about Requesting Help to see how to make it easier to get help.