为什么Jekyll将我的资本词汇转换为分类中的小写字母 [英] Why Jekyll convert my Capital words into lowercase in Categories

查看:135
本文介绍了为什么Jekyll将我的资本词汇转换为分类中的小写字母的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

graphics3d
word-cloud
math.se

这是我的类别

为什么它们都是小写字母。

Why they are all lowercase.

如何将它们设置为大写字母,因为我的计算机中的directores是大写字母。

How can I make them into Uppercase, since my directores in my computers are Uppercases.

![输入图片描述] [1]

我的标题: WordList ,Jekyll会将它转换为 Wordlist

And my titles: WordList, Jekyll will convert it into Wordlist.

YML fronter:

YML fronter:

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

https://github.com/幂/ hypergroups.github.com /斑点/主/ _posts /数学/数学-实验/ 2013年9月11日 - Math_Experime nt_Limit.html

在这里你可以看到,我想 Mathematica 变成类别而不是 mathematica

Here you see, I wanna Mathematica becomes category not mathematica

推荐答案

以下是我的设置

ruby 2.1.1p76
jekyll 1.0.2

我有同样的问题,并最终修改了以下jekyll源文件。 (我使用rvm)

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

我删除了这种方法。 p>

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}

这篇关于为什么Jekyll将我的资本词汇转换为分类中的小写字母的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆