{ lib }: rec { nav = menu: page: let render-item = item: if item ? menu then ''
  • ${item.menu.label} ${lib.indent " " (item.menu.outputs.html page)}
  • '' else if item ? page then ''
  • ${item.page.title}
  • '' else ''
  • ${item.link.label}
  • '' ; in '' ''; }