graphics3d
word-cloud
math.se这是我的categories
为什么它们都是小写的。
我怎么才能把它们变成大写,因为我电脑里的目录都是大写的。
![enter image description here][1]
我的标题是:WordList,Jekyll会把它转换成Wordlist。
YML前端:
---
layout: post
category: Mathematica//Math-Experiment
Tags: Formula Periodic Sequence
---在这里,你可以看到,我希望Mathematica成为类别而不是mathematica
发布于 2014-05-18 04:17:43
下面是我的设置。
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我删除了downcase方法。
# 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}发布于 2014-05-18 14:29:47
将其设置为小写可以使Jekyll更容易解析和处理项目。
我有几个问题要问你:
如果是后者,解决方案是再次将其资本化。
{% for tag in page.categories %}
<a href="{{ site.url }}/categories/index.html#{{ page.categories | cgi_encode }}" data-toggle="tooltip" title="Other posts from the {{ tag | capitalize }} category" rel="tag">{{ tag | capitalize }}</a>
{% unless forloop.last %} •
{% endunless %}
{% endfor %}https://stackoverflow.com/questions/19074064
复制相似问题