Tweaked logic of attached navigation so it works well on pages with and without a content--title