move excerpt rendering into templates