Generate navbar items dynamically from flatpages.