Menus are simply configured by adding two directives to a post or page:

menuThis is the name of the menu.
menuposThis is the position you want the page or post to appear in the menu. If you don't specify a position (or you have two items at the same position) the default is to present pages in alphabetical order.

Once you’ve defined the necessary pages as belonging to a menu, you can then display the menu in the template with something like this (assuming we’ve created a menu called top):

    {foreach $ as $item}
            <a class="page-link" href="{$site.url}{$item.url}" title="{$item.desc}">{$item.title}</a>