From 94aae1aa1fcfbd96b887e275e5021cc267315a84 Mon Sep 17 00:00:00 2001 From: Peng-Jie Date: Sun, 14 Feb 2016 11:17:34 +0800 Subject: [PATCH] setting config for zh_TW version --- CONTRIBUTING_zh_TW.md | 11 ++++++++++ _config.yml | 46 +++++++++++++++++++++++++++++++++-------- images/flags/zh_TW.png | Bin 0 -> 1488 bytes zh_TW/about.md | 36 ++++++++++++++++++++++++++++++++ zh_TW/index.html | 4 ++++ 5 files changed, 88 insertions(+), 9 deletions(-) create mode 100644 CONTRIBUTING_zh_TW.md create mode 100644 images/flags/zh_TW.png create mode 100644 zh_TW/about.md create mode 100644 zh_TW/index.html 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 0000000000000000000000000000000000000000..f28c86a7f299f0c15c358977656fa5a79343d705 GIT binary patch literal 1488 zcmeAS@N?(olHy`uVBq!ia0vp^Za}Qh!3HGbuI>>7Qj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS=07?@QuLn2Bde0{8v^Kf6`()~Xj@TAnpKdC8`Lf!&sHg;q@=(~U%$M( zT(8_%FTW^V-_X+15@d#vkuFe$ZgFK^Nn(X=Ua>OF1ees}+T7#d8#0MoBXEYLU9GXQxBrqI_HztY@Xxa#7Ppj3o=u^L<)Qdy9y zACy|0Us{w5jJPyqkW~d%&PAz-CHX}m`T04pPz=b(FUc>?$S+WE4mMNJ@J&q4%mWE% zf_3=%T6yLbmn7yTr+T{BDgn*V%gju%GH`UWG`urP3SHFX3s zoLvoIdR_99OLJ56N?>|Z5PFSq>IEf++ybD@E~!PCWvMA{Mftf3U{70R;&zJxPV=C8 zQ*gV*5T{;!pkwqwQHvDSFd<<20WskT7s!Dp{nR{QdM^SdY+es;B?bm2Cr=m0kcwMx zZd-dq2g!fw)c(Q(aWs~1_Nlbv2GD3t}eq>Ek;%9=Z; zMnUUX(~1=t7s6s{LW6uojh84@{heRI+mlrl zQv&Y?cCR=Y!plEHUtGB2$%_#2(!N{%vU_hP7{#5vvi^!-ma6H~g@K1uW)-fRdTb{* zbN3B_R33>1Va>`s=T??J>e?8bee;NXVxqZZF_*dlFVnIX*`^?!XA-O5#6?OPc61vq zeo(5F)B1A8th>i9-O87lU$Jp-`7e=#NsCgxpQxSK@r^%!!QH6Mr{3P&_i9()H9z)i z=65IZB^!AzwAsFBrJX&4YQo#ayziyCKNuaC`Z(R^gu%?riy8kjoNLznod5X9H~+I{ zOP1ONGpkK|CZc;J+RpHtRDK}yvI%NYGoS4D00`d*IqAQ&OLs9t-WA%=}pCx{{`s{Dbln}1N20VxFoL?n!PFNw{kO#yAqC|-{WE9B#tV6Qt zk(dEr8ON!fhL_3h3%+pAD14Q^?Sp$n&t0E=U$5lnG$|fFv|p>T@UQhRu2%-@{!d)! l6?4pT|I#o?u^mDQ4E^uB+*U5DTn;K@Jzf1=);T3K0RS3eFwFn} literal 0 HcmV?d00001 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 +---