fix posts html generation