Apply structure changes to HTML and implement category path in singlePostAction