Skip to content

Commit

Permalink
feat: update language examples and add doc for i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Jan 5, 2019
1 parent e4e9602 commit bf8133d
Show file tree
Hide file tree
Showing 28 changed files with 345 additions and 254 deletions.
28 changes: 14 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Enhancements

- Swiper component Enhancement: support mouse move
- Swiper component support mouse move
- Add lightbox (modal image gallery)
- Add Valine comment system (@Lloyar)

Expand All @@ -26,33 +26,33 @@
### Enhancements

- Add extensions for audios (SoundCloud, Netease Cloud Music), videos (YouTube, TED, bilibili) and slide(SlideShare)
- Add sharing (AddToAny)
- Add AddToAny sharing service

## 2.2.1 (2018-10-02)

### Enhancements

- Update screenshots
- landing Layout `data.sections` item's `image` add `full_width` setting
- Landing layout `data.sections` item's `image` add `full_width` setting
- Remove `header.type` and add `header.background` setting
- page layout sidebar use document scroll when viewport width < 1024px, this enhance the user experience on a phone or a pad
- Page layout sidebar use document scroll when viewport width < 1024px, this enhance the user experience on a phone or a pad
- Telegram social icon (@WangQiru)
- Search panel use dark background

## 2.2.0 (2018-09-16)

### Enhancements

- `article_header` config for Page Layout
- Articles Layout
- `article_header` setting for page layout
- Articles layout
- New grid system
- Image, card, item and hero components
- Tag additional style
- chart.js update to 2.7.2, mathjax update to 2.7.4 and mermaid update to 8.0.0-rc.8

### Bug Fixes

- replace Lenna example image
- replace Lenna test image

## 2.1.0 (2018-08-26)

Expand Down Expand Up @@ -89,7 +89,7 @@

### Bug Fixes

- `mathjax` and `mermaid` config may not work
- `mathjax` and `mermaid` setting may not work

## 2.0.0 (2018-07-01)

Expand All @@ -105,10 +105,10 @@ Breaking changes, please check [Update from 1.x to 2.x](https://tianqi.name/jeky

### Enhancements

- `text_color_theme` config
- `text_color_theme` setting
- Long pagination
- Additional styles (Alert, Image)
- Mathjax autoNumber config (@liao961120)
- Mathjax `autoNumber` setting (@liao961120)
- Article heading anchor
- Previous and next post
- Search
Expand All @@ -127,7 +127,7 @@ Breaking changes, please check [Update from 1.x to 2.x](https://tianqi.name/jeky
### Enhancements

- Use new liquid syntax `{%-` `-%}` to avoid unnecessary output whitespace
- Add paths.base config
- Add `paths.base` setting

## 1.4.1 (2017-12-05)

Expand Down Expand Up @@ -156,7 +156,7 @@ Breaking changes, please check [Update from 1.x to 2.x](https://tianqi.name/jeky
- Article tag supports special characters
- Excerpts type (HTML | TEXT)
- Titles on the phone become smaller
- Styles change (table, code, blockquote)
- Change styles for table, code and blockquote

## 1.2.2 (2017-11-04)

Expand All @@ -180,7 +180,7 @@ Breaking changes, please check [Update from 1.x to 2.x](https://tianqi.name/jeky

### Bug Fixes

- Issues 4: View count display error when the post key include `-` (@yuxianda)
- View count display error when the post key include `-` (@yuxianda)
- Email url error

## 1.2.0 (2017-10-22)
Expand All @@ -192,7 +192,7 @@ Breaking changes, please check [Update from 1.x to 2.x](https://tianqi.name/jeky

### Bug Fixes

- Fix article TOC ’s display error at proper situation
- Fix article TOC’s display error at proper situation
- Fix footer social buttons not in the center bug

## 1.1.0 (2017-10-19)
Expand Down
2 changes: 1 addition & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ TeXt 是针对个人或团队网站、博客、项目、文档等的一款高度
- HTML 语意化
- 皮肤
- 代码高亮主题
- 多语言支持
- 国际化
- 搜索
- 目录
- 作者(电子邮件,Facebook,Twitter,领英,微博,知乎等。支持多作者配置)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ TeXt is a super customizable Jekyll theme for personal site, team site, blog, pr
- Semantic HTML
- Skins
- Highlight Theme
- Multi-language support
- Internationalization
- Search
- Table of contents
- Authors (Email, Facebook, Twitter, Linkedin, Weibo, Zhihu, etc)
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ description: > # this means to ignore newlines until "Language & timezone"
## => Language and Timezone
##############################
lang: # the language of your site, "en" (default, English), "zh"(简体中文), "zh-Hans"(简体中文), "zh-Hant"(繁體中文), "ko"(한국어)
lang: # the language of your site, default as "en"
timezone: # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the available values


Expand Down
12 changes: 2 additions & 10 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,30 @@ header:
en-CA : *EN
en-GB : *EN
en-AU : *EN

zh-Hans : &ZH_HANS 归档
zh : *ZH_HANS
zh-CN : *ZH_HANS
zh-SG : *ZH_HANS

zh-Hant : &ZH_HANT 歸檔
zh-TW : *ZH_HANT
zh-HK : *ZH_HANT

ko : &KO 아카이브
ko-KR : *KO

url: /archive.html
url: /archive.html

- titles:
en : &EN About
en-US : *EN
en-CA : *EN
en-GB : *EN
en-AU : *EN

zh-Hans : &ZH_HANS 关于
zh : *ZH_HANS
zh-CN : *ZH_HANS
zh-SG : *ZH_HANS

zh-Hant : &ZH_HANT 關於
zh-TW : *ZH_HANT
zh-HK : *ZH_HANT

ko : &KO 소개
ko-KR : *KO

url: /about.html
url: /about.html
3 changes: 0 additions & 3 deletions _layouts/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@
en-CA : *EN
en-GB : *EN
en-AU : *EN

zh-Hans : &ZH_HANS 归档
zh : *ZH_HANS
zh-CN : *ZH_HANS
zh-SG : *ZH_HANS

zh-Hant : &ZH_HANT 歸檔
zh-TW : *ZH_HANT
zh-HK : *ZH_HANT

ko : &KO 아카이브
ko-KR : *KO
---
Expand Down
3 changes: 0 additions & 3 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@
en-CA : *EN
en-GB : *EN
en-AU : *EN

zh-Hans : &ZH_HANS 主页
zh : *ZH_HANS
zh-CN : *ZH_HANS
zh-SG : *ZH_HANS

zh-Hant : &ZH_HANT 主頁
zh-TW : *ZH_HANT
zh-HK : *ZH_HANT

ko : &KO 홈
ko-KR : *KO
show_title: false
Expand Down
3 changes: 0 additions & 3 deletions about.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ titles:
en-CA : *EN
en-GB : *EN
en-AU : *EN

zh-Hans : &ZH_HANS 关于
zh : *ZH_HANS
zh-CN : *ZH_HANS
zh-SG : *ZH_HANS

zh-Hant : &ZH_HANT 關於
zh-TW : *ZH_HANT
zh-HK : *ZH_HANT

ko : &KO 소개
ko-KR : *KO
key: page-about
Expand Down
2 changes: 1 addition & 1 deletion docs/_config.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ description: > # this means to ignore newlines until "Language & timezone"
## => Language and Timezone
##############################
lang: # the language of your site, "en" (default, English), "zh"(简体中文), "zh-Hans"(简体中文), "zh-Hant"(繁體中文)
lang: # the language of your site, default as "en"
timezone: # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for the available values


Expand Down
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ description: >
## => Language and Timezone
##############################
lang: en # the language of your site, "en" (default, English), "zh"(简体中文), "zh-Hans"(简体中文), "zh-Hant"(繁體中文)
lang: en # the language of your site, default as "en"
timezone: Asia/Shanghai


Expand Down
Loading

0 comments on commit bf8133d

Please sign in to comment.