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