diff --git a/CONTRIBUTING_zh_TW.md b/CONTRIBUTING_zh_TW.md new file mode 100644 index 00000000..c289f38e --- /dev/null +++ b/CONTRIBUTING_zh_TW.md @@ -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。 diff --git a/_config.yml b/_config.yml index 49612db4..806961f9 100644 --- a/_config.yml +++ b/_config.yml @@ -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 @@ -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 @@ -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: 提交小知识 @@ -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: 下一篇小知識 diff --git a/images/flags/zh_TW.png b/images/flags/zh_TW.png new file mode 100644 index 00000000..f28c86a7 Binary files /dev/null and b/images/flags/zh_TW.png differ diff --git a/zh_TW/about.md b/zh_TW/about.md new file mode 100644 index 00000000..d49914ae --- /dev/null +++ b/zh_TW/about.md @@ -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) diff --git a/zh_TW/index.html b/zh_TW/index.html new file mode 100644 index 00000000..30d1f881 --- /dev/null +++ b/zh_TW/index.html @@ -0,0 +1,4 @@ +--- +layout: home +lang: zh_TW +---