Hartlepool United were beaten for the third game in a row, losing 1-0 to title-chasing York City on Saturday.