generate post meta from posts/directory