Add function to format home excerpt