Updated formatting of build_nav_links function