Optimize frontpage for #101.
Break that optimization conditional out into a utility function.
Merge pull request #109 from fedora-infra/feature/optimize-frontpage

Optimize frontpage for #101.