1、Octopress中的Category名称自动小写
Octopress默认会将Category的名称全部自动小写,比如Octopress
会被写为octopress
;iOS
被写为ios
。这不是我们想要的结果,我们希望该大写的大写,该小写的小写。
可以修改jekyll的post.rb文件来禁止Category名称自动小写。
$ sudo vi /Library/Ruby/Gems/2.0.0/gems/jekyll-2.5.3/lib/jekyll/post.rb
找到以下内容:
def populate_categories
categories_from_data = Utils.pluralized_array_from_hash(data, 'category', 'categories')
self.categories = (
Array(categories) + categories_from_data
).map {|c| c.to_s.downcase}.flatten.uniq
end
将其中的downcase
去掉,改为:
def populate_categories
categories_from_data = Utils.pluralized_array_from_hash(data, 'category', 'categories')
self.categories = (
Array(categories) + categories_from_data
).map {|c| c.to_s}.flatten.uniq
end
2、Octopress不支持删除线语法(~~xxx~~
)
不用~~xxx~~
语法,直接用html标签:
You can strike through text using HTML like this:
<s>this is strike through text</s>
Output: