give the home page a βhomeβ template and put the go code there. So every time somebody calls the home page (with the home template) a random page will be displayed and the subpages are accessible like always because they use other templates.
The question here is which pages you want to pick randomly and where/how these pages should be displayed. Of course, you could use a random route, which then picks any page randomly and shows it.
My pool of pages is only small at the moment, so the same page will often come up. Obviously this will decrease as more pages are added, but Iβd still like to prevent it from happening.
Could I somehow exclude the current uri() from the shuffle?