Upgraded the template to include home page type and gallery page type.