← back to the blog


Editing Front Page Nav Links

Posted in KeystoneJS

One of the slick things about KeystoneJS is it's automatic configuration of pages and navigation in the AdminUI based on the models that exist. Create a new model and the ability to interact with it in the Admin UI magically appears. Cool!

But after porting this site over to Keystone, I wanted to remove some of the default navigations like the Contact and Gallery pages. That left me scratching my head.

It turns out that the nav links are stored in routes/middleware.js in the variable locals.navLinks.