clean up variable passing in posts list template