Move the home page stuff into a function that is replaced with a shortcode.