Skip to content

Commit

Permalink
setting config for zh_TW version
Browse files Browse the repository at this point in the history
  • Loading branch information
neighborhood999 committed Feb 21, 2016
1 parent 8b53a32 commit 94aae1a
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 9 deletions.
11 changes: 11 additions & 0 deletions CONTRIBUTING_zh_TW.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 如何提交你的小知識

如果要提交小知識到目錄,fork 這個儲存庫(repository)並加入你的小知識到檔案內,放入到正確的資料夾(根據語系)。檔案名稱應該為 `2016-xx-xx-name-of-your-tip`

當你撰寫你的小知識時,請使用[這個格式](https://github.com/loverajoel/jstips/blob/gh-pages/POST_TEMPLATE.md)。你的小知識應該要可以在兩分鐘內讀懂。你可以連結到其他的網站或者是影片讓我們了解更多。

當你的小知識準備好了,依據這個 [PR 樣板](https://github.com/loverajoel/jstips/blob/gh-pages/GIT_TEMPLATE.md)[發送一個 PR](https://help.github.com/articles/using-pull-requests/)你的小知識將會被校閱。每天都會有小知識從可用的 PR 中被合併(merged)。

# 注意

使用 **xx** 為日期和小知識的編號。當我們決定合併你的 PR 你可以把它們增加並 squash 到你的 commits。
46 changes: 37 additions & 9 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ defaults:
layout: default
lang: zh_CN
is_post: true
-
scope:
path: _posts/zh_TW
type: posts
values:
layout: default
lang: zh_TW
is_post: true

# Enter your Disqus shortname (not your username) to enable commenting on posts
# You can find your shortname on the Settings page of your Disqus account
Expand Down Expand Up @@ -85,23 +93,26 @@ exclude:

# languages var
languages:
-
-
name: en
link: /
-
-
name: zh_CN
link: /zh_CN

-
name: zh_TW
link: /zh_TW

transl:
en:
menu:
home:
home:
txt: Home
link: /
about:
about:
txt: About
link: /about
subscribe:
subscribe:
txt: Subscribe
submit_your_tip:
txt: Submit your tip
Expand All @@ -112,13 +123,13 @@ transl:
arrow_next: Next Tip
zh_CN:
menu:
home:
home:
txt: 主页
link: /zh_CN
about:
about:
txt: 关于
link: /zh_CN/about
subscribe:
subscribe:
txt: 订阅
submit_your_tip:
txt: 提交小知识
Expand All @@ -127,3 +138,20 @@ transl:
footer_placeholder_subscribe: your@email.com
arrow_prev: 上一条
arrow_next: 下一条
zh_TW:
menu:
home:
txt: 首頁
link: /
about:
txt: 關於
link: /about
subscribe:
txt: 訂閱
submit_your_tip:
txt: 提交你的小知識
link: https://github.com/loverajoel/jstips/blob/gh-pages/CONTRIBUTING_zh_TW.md
footer_subscribe_message: 訂閱更多更棒的每日小知識!
footer_placeholder_subscribe: your@email.com
arrow_prev: 上一篇小知識
arrow_next: 下一篇小知識
Binary file added images/flags/zh_TW.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions zh_TW/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
layout: page
title: 關於 JavaScript 小知識
permalink: /about/
lang: zh_TW
---

> 新的一年、新的計畫。**每日一篇 JS 小知識!**
懷著興奮的心情,我每天介紹了一些簡短而有用的 JavaScript 小知識,讓你提升程式碼的撰寫能力。每天花不到 2 分鐘,你可以閱讀到關於效能、習慣、技術、面試問題以及所有 JavaScript 未來適用於我們的項目。

不管是周末或是假日,都會張貼小知識在網站和推特上。

### 你可以幫我們豐富內容嗎?
請儘管的將你的 JavaScript 小知識 PR 給我們,我們會公開在這。
任何改進或建議我們都很歡迎!
[點擊查看說明](https://github.com/loverajoel/jstips/blob/master/CONTRIBUTING.md)

### 讓我們保持聯絡聯繫

這裡有很多方式來取得更新,選擇你自己喜歡的

- [Officail Blog](http://www.jstips.co)
- [Official Twitter Account](https://twitter.com/tips_js)
- [Hubot](https://github.com/dggriffin/hubot-jstips)
- [js2016.tips](http://js2016.tips/)
- [Hingsir](http://hingsir.com/jstips-site/dist/tips/)
- [Awesomelists](https://awesomelists.top/#/repos/loverajoel/jstips)

> 不要忘記在 Github 上給我們一顆星星,這有助於促進 jstips 的推廣!
### 感謝

- GIF's => [Maxi Albella](https://dribbble.com/maxialbella)
- JS Tips Theme => [Marcos Cosimi](https://github.com/markoscc)
- Languages flags => [Muharrem Senyil](https://dribbble.com/shots/1211759-Free-195-Flat-Flags)
4 changes: 4 additions & 0 deletions zh_TW/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: home
lang: zh_TW
---

0 comments on commit 94aae1a

Please sign in to comment.