yizeng / jekyll-theme-simple-texture

A gem-based responsive simple texture styled Jekyll theme.
https://yizeng.github.io/jekyll-theme-simple-texture/
MIT License
189 stars 216 forks source link

"Language Codes" caused by the error #4

Closed fandean closed 7 years ago

fandean commented 7 years ago

Hello, there is a bug here when I set lang to zh in the _config.yml file and then Categories, Tags, Search, About can not be displayed.

# _config.yml
# Site Settings
encoding: UTF-8
exclude: ["*.gem", "*.gemspec", "Gemfile", "Gemfile.lock", "node_modules", "Rakefile", "starter-kit", "vendor"]
#lang: en
lang: zh
...

2017-07-07_22-27-07

2017-07-07_22-29-15

yizeng commented 7 years ago

@FanDean 感谢指出这个问题! 👍

It turns out to be I defined the language code wrong. If you change it to lang: zh to lang:cn, it should be working for now. I'll get it changed in the next release (hopefully tonight).

See https://github.com/yizeng/jekyll-theme-simple-texture/blob/master/_data/i18n.yml for more details.