implememented the erb template use for producing the post pages