Combining pages and sections?

Hi all!

I’d like to build a page navigation where i combine pages and sections into one UL>LI list. Is that possible?

Look at the picture below, I’d like the menu to print out the following:

04

I know I can access .Pages and .Sections and use range but can I somehow concatenate those two into one?

hehey! I seem to have solved it… not sure if this is the correct way of doing it though…

{{ $list := .Sections }}
{{ $list = $list | append .Pages }}

Clever

@Leo_Merkel not clever, just a lucky shot! :slight_smile: