Automatically generate posts.js