Why Jekyll convert my Capital words into lowercase in Categories

前端 未结 2 1964
逝去的感伤
逝去的感伤 2021-01-06 07:14
graphics3d
word-cloud
math.se

This is my categories

Why they are all lowercase.

How can I make them into Uppercase, since my direct

2条回答
  •  北海茫月
    2021-01-06 08:09

    The following is my setup.

    ruby 2.1.1p76
    jekyll 1.0.2
    

    I have the same problem, and eventually modified the following source file of jekyll. (I use "rvm")

    # vim /usr/local/rvm/gems/ruby-2.1.1/gems/jekyll-1.0.2/lib/jekyll/post.rb
    

    I removed the downcase method.

    # 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}
    

提交回复
热议问题