Retroactively add keywords for your existing Octopress posts

less than 1 minute read

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.

I usually write about 15 minutes worth of reading per month. I won't transfer your email. No Spam, unsubscribe whenever you want.

As a gift for subscribing, you'll receive an illustrated mini-ebook "How to start a team coding dojo"!

Leave a comment