Homepage post generation refactored