Changed topnav regex to account for site.baseurl not being empty.

This might create false positives if there’s a gallery item named “api”
or whatever, but seems an OK hack for the moment.