Rake task to generate index. Format posts