ul for page, slug in public.docs[current.path[1]][current.path[2]][current.path[3]][current.path[4]]._data name = page.menuTitle || page.title selected = current.path[4] == slug ? 'is-selected':'' li #{slug}