Make head elements order uniform across templates and examples