Added code to generate recent posts