Make the heading for topic pages always be the topic name

This puts the page title for pages into the body if the page has a
category. Otherwise the page title goes in the heading. This should
close #262