Basic code for subnav (mainly for documentation navigation)