fix archives page and active link states for pages