The community member asked if there is a way to have a dynamic navigation that automatically makes a link for each page. In the comments, another community member suggested using a system resource that has information about all pages, and using a collection to create the navigation. However, they noted that this approach may not be very scalable or maintainable, as system variables cannot be used in slots. Another community member pointed out that the system resource does not include page titles, only paths.
There's a system resource that has info about all pages. I guess you can use that with a collection. Never tried it but seems like it could work. Downside is you can't use system vars in slots (yet) so wouldn't be very scalable/maintainable.