You need to provide a minimal repo that illustrates your project’s structure. For example what is the link directory? Is it a Section? Is it a Page Bundle?
You also need to write where you’re trying to render these pages. Is it on the homepage? Is it a section?
Once you answer the above then maybe either me or someone else in the Forum can help you.
before I answer @alexandros I realized I need to ask one more foundamental question:
Homepage has access to all pages of the site. Is it possible to create another page that can also access all pages of the site?
For example. I am trying to make index.html to display all pages of my website (the website has many folders). And I also want to create /top-picks.html page that will display all pages of the site with frontmatter „selected”. How one can access all pages of the site outside of homepage?