adding if loop to blog lists