graphics3d
word-cloud
math.se
这是我的categories
为什么它们都是小写。
我怎样才能把它们变成大写,因为我电脑里的目录都是大写的。
![在此处输入图像描述][1]
我的标题:WordList
,Jekyll 会将其转换为 Wordlist
。
YML 前沿:
---
layout: post
category: Mathematica//Math-Experiment
Tags: Formula Periodic Sequence
---
在这里你看,我想要 Mathematica
成为类别而不是 mathematica
最佳答案
以下是我的设置。
ruby 2.1.1p76
jekyll 1.0.2
我也遇到了同样的问题,最终修改了以下jekyll源文件。 (我使用“rvm”)
# vim /usr/local/rvm/gems/ruby-2.1.1/gems/jekyll-1.0.2/lib/jekyll/post.rb
我删除了小写方法。
# diff post.rb.org post.rb
79c79
< self.categories = self.data.pluralized_array('category', 'categories').map {|c| c.to_s.downcase}
---
> self.categories = self.data.pluralized_array('category', 'categories').map {|c| c.to_s}
关于github - 为什么 Jekyll 将类别中的大写字母转换为小写字母,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19074064/