# Render Menu ## Content # Render Menu The simplest way to build navigation is to use `sitemap`, which is available as a template variable. ## Add ordering in frontmatter ```markdown --- title: Getting Started nav_order: 1 --- ``` ## Basic menu (single level) ```erb ``` ## Nested menu (recursive) ```erb <%# app/views/trifle/docs/_nav.erb %> <% def render_nav(tree) %> <% end %> <%= render_nav(sitemap) %> ``` Keep `_meta` and file nodes out of the menu so navigation stays clean.