Probably depends on what version of Confluence you're using, and probably not very simply or easily unless you're happy fiddling around with the files that make up the documentation theme.
Having said all that, I'm just guessing but this might work for 3.x - have a look at the pagetree2 macro from Adaptavist - https://www.adaptavist.com/display/Builder/pagetree2+macro.
Atlassian Summit is an excellent opportunity for in-person support, training, and networking.Learn more
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG