add automatic sidebar nav generation to page template