change the name post to singlePost to fix the error