Added output format to page classes

This is to allow for format-dependent styling