bugfix: page titles

the recent styling change broke page titles. This change fixes the titles
and adds some specs to prevent breakage in the future.