conditional frontpage generation