refactored posts to use metadata json files