Why does Jekyll convert my capital words to lowercase letters in categories

graphics3d
word-cloud
math.se

This is my categories

Why are they all lowercase.

How can I do them in Uppercase, since my directories on my computers are Uppercases.

![enter image description here][1]

And my headlines:, WordListJekyll converts it to WordList.

YML fronter:

---
layout: post
category: Mathematica//Math-Experiment
Tags: Formula Periodic Sequence
---

https://github.com/HyperGroups/hypergroups.github.com/blob/master/_posts/Mathematica/Math-Experiment/2013-09-11-Math_Experiment_Limit.html

Here you see, I want to Mathematicabecome a category notMathematica

+4
source share
2 answers

Below is my setup.

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}
+3

, Jekyll .

:

  • 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 %}&nbsp;&bull;&nbsp;
{% endunless %}
{% endfor %}
0

All Articles