Added post archives, rearranged some code to prevent repetition.