Adds page titles to templates