Refactor index.php.

Break out separate function for featured post assembly.