Logic to render carousel or blog on homepage