Update pages.single.md

You defined a getText helper twice. One should have been getTitle. I picked the first one. :-)