Retroactively Add Keywords for Your Existing Octopress Posts

At the moment, I am exploring the world of SEO, and so I thought I could start with my blog. I found SEO for Octopress websites that I followed to add keywords and descriptions to this blog.

To fill actual keywords for all my existing posts, I had 2 options :

  • edit around 60 posts by hand
  • write a script to parse Yaml post descriptions and extract and inject keywords

Sorry, I chose the geeky solution …

Just add this code to your toplevel Rakefile, and run bundle exec rake add_keywords and keywords will be added to your existing posts.