Use newer hash syntax for navbar generator

(Due to point made in comments on a82324454806c5c18666508da1db39b26ddddcad)