帐前卒专栏

Without software, we are nothing.

Octopress Bugs

Today, I have met a bug of octopress. When you write your blog with number in categories, like “cattegories: [some keyword, 2012]”.

When you type rake generate. The command will report:

/plugins/category_generator.rb:109:in `block in write_category_indexes`;: undefined method `gsub`; for 2012:Fixnum (NoMethodError)


It is caused by your number 2012.

1
vi plugins/category_generator.rb

Go to line 109. and add a line code:

1
category = category.to_s

Now, type rake generate again. It will be fine.

Comments