├── .gitignore ├── .mdlrc ├── .tm_properties ├── .travis.init.yml ├── .travis.yml ├── .uncssrc ├── ATTRIBUTION.md ├── CHANGELOG.md ├── CONTRIBUTING.md ├── CONVENTIONS.md ├── Gemfile ├── Gemfile.lock ├── Gruntfile.coffee ├── LICENSE ├── README.amsf.md ├── README.md ├── TODOS.md ├── _amsf.yml ├── _app ├── _data │ ├── authors.yml │ ├── curtana.yml │ └── header.yml ├── _drafts │ └── .gitkeep ├── _includes │ ├── _amsf.html │ ├── amsf │ │ ├── author │ │ ├── core │ │ ├── css │ │ ├── dates │ │ ├── favicons │ │ ├── google_analytics │ │ ├── has_protocol │ │ ├── heading │ │ ├── hostname │ │ ├── lang │ │ ├── open_graph │ │ ├── relative_url │ │ ├── service_worker │ │ ├── site_desc │ │ ├── site_title │ │ ├── theme_color │ │ ├── thumbnail │ │ ├── type │ │ ├── urls │ │ └── word_counter │ └── themes │ │ └── curtana │ │ ├── includes │ │ ├── content.html │ │ ├── css-variables.html │ │ ├── footer.html │ │ ├── header.html │ │ ├── open-graph.html │ │ ├── page-item.html │ │ └── top.html │ │ └── layouts │ │ ├── default.html │ │ ├── page.html │ │ └── post.html ├── _layouts │ ├── default.html │ ├── page.html │ └── post.html ├── _pages │ ├── about.md │ ├── error.md │ ├── index.html │ └── themes │ │ └── curtana │ │ ├── example-about.md │ │ └── example-news.html ├── _posts │ ├── doc │ │ ├── 2014-07-13-copywriting-style-guide.md │ │ ├── 2014-07-17-perf-review.md │ │ ├── 2014-07-29-tech-support-guide.md │ │ ├── 2014-08-06-culture-and-values.md │ │ ├── 2014-08-07-salary.md │ │ ├── 2014-08-23-equity.md │ │ ├── 2014-10-30-tech-interview-guide.md │ │ ├── 2014-12-02-git-branch-guide.md │ │ └── 2016-10-19-vacation.md │ └── note │ │ └── 2014-07-17-improve-chinese.md ├── apple-touch-icon.png ├── assets │ ├── _js │ │ └── user.js │ ├── _less │ │ └── user.less │ ├── font │ │ └── .gitkeep │ ├── img │ │ ├── .gitkeep │ │ └── bg.png │ ├── svg │ │ └── .gitkeep │ └── themes │ │ └── curtana │ │ ├── _js │ │ ├── app.js │ │ └── lightense.min.js │ │ └── _less │ │ ├── .csscomb.json │ │ ├── app.less │ │ ├── common.less │ │ ├── components │ │ └── randomized.less │ │ ├── mixins.less │ │ ├── plugins.less │ │ ├── print.less │ │ ├── reset.less │ │ └── variables.less ├── favicon.ico ├── feed-atom.xml ├── feed-json.json ├── logo.png ├── manifest.json ├── robots.txt └── sitemap.xml ├── _config.dev.yml ├── _config.init.yml ├── _config.yml ├── _deploy.yml ├── package-lock.json ├── package.json ├── s3_website.example.yml └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | # Numerous always-ignore extensions 2 | *.diff 3 | *.err 4 | *.orig 5 | *.log 6 | *.rej 7 | *.swo 8 | *.swp 9 | *.zip 10 | *.vi 11 | *~ 12 | 13 | # OS or Editor folders 14 | .DS_Store 15 | ._* 16 | Thumbs.db 17 | .cache 18 | .project 19 | .settings 20 | .tmproj 21 | *.esproj 22 | nbproject 23 | *.sublime-project 24 | *.sublime-workspace 25 | .idea 26 | 27 | # Folders to ignore 28 | node_modules 29 | 30 | # AMSF specified 31 | .amsf-cache 32 | .jekyll-metadata 33 | _site 34 | _app/assets/**/js 35 | _app/assets/**/css 36 | 37 | # AMSF deprecated, leave them for compatibility 38 | _amsf/themes 39 | _amsf/core 40 | -------------------------------------------------------------------------------- /.mdlrc: -------------------------------------------------------------------------------- 1 | rules "~MD001", "~MD002", "~MD041", "~MD013", "~MD009" -------------------------------------------------------------------------------- /.tm_properties: -------------------------------------------------------------------------------- 1 | # Variables 2 | EXCLUDES = "{_amsf,_site,node_modules}" 3 | 4 | # Exclude search list 5 | excludeInFolderSearch = "$EXCLUDES" 6 | excludeInFileChooser = "$EXCLUDES" -------------------------------------------------------------------------------- /.travis.init.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | cache: 4 | - bundler 5 | node_js: 6 | - "5" 7 | - "4" 8 | - "0.12" 9 | before_install: 10 | - if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi 11 | - rvm use 2.2.2 --install --fuzzy 12 | - bundle install 13 | matrix: 14 | fast_finish: true 15 | notifications: 16 | email: false 17 | slack: 18 | secure: P/ngpvqinM/t9tdXZO2qHQvq2XCkcerKM+KwNJlQoVHnkl/Z/EtzB1yxiZZ6LGdHp+r3nShBhfW+gJVojU80EObt0iWHbFTkUUMFf6WI6c056937CksQI4atmDBiCJxMAnkd6DCLWfBexVtKDhkc5vX0bYhgoiXEzCYUhFd8pZ4= 19 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | cache: 4 | - bundler 5 | node_js: 6 | - "6" 7 | - "4" 8 | before_install: 9 | - if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi 10 | - rvm use 2.2.2 --install --fuzzy 11 | - bundle install 12 | matrix: 13 | fast_finish: true 14 | notifications: 15 | email: false 16 | slack: 17 | secure: P/ngpvqinM/t9tdXZO2qHQvq2XCkcerKM+KwNJlQoVHnkl/Z/EtzB1yxiZZ6LGdHp+r3nShBhfW+gJVojU80EObt0iWHbFTkUUMFf6WI6c056937CksQI4atmDBiCJxMAnkd6DCLWfBexVtKDhkc5vX0bYhgoiXEzCYUhFd8pZ4= 18 | -------------------------------------------------------------------------------- /.uncssrc: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /ATTRIBUTION.md: -------------------------------------------------------------------------------- 1 | # CC BY-NC-ND 3.0 License Attribution 2 | 3 | Posts inside [`./_app/_posts/`](_app/_posts/) directory and all images and icon files are licensed as [CC BY-NC-ND 3.0](http://creativecommons.org/licenses/by-nc-nd/3.0/) Tunghsiao Liu. 4 | 5 | As stated in the license: 6 | > **Attribution** — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). 7 | 8 | For any use of the posts I require a prominently placed link to . 9 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | 2 | ## [0.0.7](https://github.com/leancloud/open/compare/v0.0.6...v0.0.7) (2018-01-24) 3 | 4 | 5 | ### Bug Fixes 6 | 7 | * **amsf:** missing header ([3a1c962](https://github.com/leancloud/open/commit/3a1c962)) 8 | * **css:** wrong font weight on Firefox, damn ([70ae230](https://github.com/leancloud/open/commit/70ae230)) 9 | 10 | 11 | 12 | 13 | ## [0.0.6](https://github.com/leancloud/open/compare/v0.0.5...v0.0.6) (2017-01-05) 14 | 15 | 16 | ### Bug Fixes 17 | 18 | * **post:** wrong layout ([63de58d](https://github.com/leancloud/open/commit/63de58d)) 19 | * **theme:** header to large for some users to realize this page scrollable... ([85ea4d6](https://github.com/leancloud/open/commit/85ea4d6)) 20 | 21 | ### Features 22 | 23 | * **style:** responsive background size ([6c3a080](https://github.com/leancloud/open/commit/6c3a080)) 24 | * add Open Graph ([825e1ed](https://github.com/leancloud/open/commit/825e1ed)) 25 | * **style:** use system font ([20e958f](https://github.com/leancloud/open/commit/20e958f)) 26 | 27 | 28 | 29 | 30 | ## [0.0.5](https://github.com/leancloud/open/compare/v0.0.4...v0.0.5) (2016-05-12) 31 | 32 | 33 | ### Bug Fixes 34 | 35 | * **post:** wrong paragraph in “余光中:怎样改进英式中文?——论中文的常态与变态” ([2c66e65](https://github.com/leancloud/open/commit/2c66e65)) 36 | 37 | ### Features 38 | 39 | * add header background image ([f7d1a07](https://github.com/leancloud/open/commit/f7d1a07)) 40 | 41 | 42 | 43 | 44 | ## [0.0.4](https://github.com/leancloud/open/compare/v0.0.3...v0.0.4) (2016-03-31) 45 | 46 | 47 | ### Bug Fixes 48 | 49 | * **docs:** revert readme [ci skip] ([6014a9d](https://github.com/leancloud/open/commit/6014a9d)) 50 | * **docs:** wrong link location ([f2418e5](https://github.com/leancloud/open/commit/f2418e5)) 51 | * **jekyll:** avoid deprecation warning ([bc53014](https://github.com/leancloud/open/commit/bc53014)) 52 | * **post:** wrong blockquote usage ([f19c760](https://github.com/leancloud/open/commit/f19c760)) 53 | * **styles:** wrong custom variables for new stylesheet ([a07bbac](https://github.com/leancloud/open/commit/a07bbac)) 54 | 55 | ### Features 56 | 57 | * **styles:** minor changes for new theme layout ([cf0cd3f](https://github.com/leancloud/open/commit/cf0cd3f)) 58 | 59 | 60 | 61 | 62 | ## [0.0.3](https://github.com/leancloud/open/compare/v0.0.2...v0.0.3) (2016-03-01) 63 | 64 | 65 | ### Bug Fixes 66 | 67 | * **amsf:** missing custom user assets ([390080a](https://github.com/leancloud/open/commit/390080a)) 68 | 69 | ### Features 70 | 71 | * **about:** update colophon ([187578b](https://github.com/leancloud/open/commit/187578b)) 72 | * **script:** remove client-side leading quotes fix ([03f3a6d](https://github.com/leancloud/open/commit/03f3a6d)) 73 | * **styles:** use PingFang SC ([8f282af](https://github.com/leancloud/open/commit/8f282af)) 74 | 75 | 76 | 77 | 78 | ## [0.0.2](https://github.com/leancloud/open/compare/v0.0.1...v0.0.2) (2015-08-24) 79 | 80 | 81 | ### Bug Fixes 82 | 83 | * **jekyll:** CSS classes not parsing ([02d906e](https://github.com/leancloud/open/commit/02d906e)) 84 | * **post:** blockquotes not parsing ([1c53544](https://github.com/leancloud/open/commit/1c53544)) 85 | 86 | ### Features 87 | 88 | * **script:** add quote mark fix via script ([421d6d4](https://github.com/leancloud/open/commit/421d6d4)) 89 | * **template:** use global GA tracking code ([1b9a372](https://github.com/leancloud/open/commit/1b9a372)) 90 | * **theme:** minor update ([ff61fcf](https://github.com/leancloud/open/commit/ff61fcf)) 91 | 92 | 93 | 94 | 95 | ## 0.0.1 (2015-08-20) 96 | 97 | 98 | ### Bug Fixes 99 | 100 | * `last_modified_at` not format correctly ([8e94869](https://github.com/leancloud/open/commit/8e94869)) 101 | * add base path ([5d4adc3](https://github.com/leancloud/open/commit/5d4adc3)) 102 | * **authors:** wrong default author name ([420dc64](https://github.com/leancloud/open/commit/420dc64)) 103 | * **grunt:** `grunt-html-smoosher` cannot be installed ([36e6318](https://github.com/leancloud/open/commit/36e6318)) 104 | * **package:** missing deps ([3831133](https://github.com/leancloud/open/commit/3831133)) 105 | * **post:** blockquote ([17cc298](https://github.com/leancloud/open/commit/17cc298)) 106 | * **post:** correct times symbol ([87ca1b9](https://github.com/leancloud/open/commit/87ca1b9)) 107 | * **post:** many typography fixes for post "余光中:怎样改进英式中文?——论中文的常态与变态" ([90a1777](https://github.com/leancloud/open/commit/90a1777)) 108 | * **script:** wrong GA code ([c1138bd](https://github.com/leancloud/open/commit/c1138bd)) 109 | * **style:** avoid _italic_ ([a95575a](https://github.com/leancloud/open/commit/a95575a)) 110 | * **style:** fix `text-align: justified;` for posts in Chinese ([b0334c8](https://github.com/leancloud/open/commit/b0334c8)) 111 | * **style:** reset header text align for justified text ([0721af5](https://github.com/leancloud/open/commit/0721af5)) 112 | * **style:** title hyphens fix ([00f2973](https://github.com/leancloud/open/commit/00f2973)) 113 | * **style:** wrong heading padding fix ([399d99a](https://github.com/leancloud/open/commit/399d99a)) 114 | * **tempalte:** wrong Twitter user handle for Twitter Cards ([83d83ff](https://github.com/leancloud/open/commit/83d83ff)) 115 | * **template:** apply markdownify for post description ([0e2c847](https://github.com/leancloud/open/commit/0e2c847)) 116 | * **template:** avoid “layout not found” error introduced since Jekyll 2.2.0 ([5a3b6be](https://github.com/leancloud/open/commit/5a3b6be)) 117 | * **template:** correct error page title ([93c212d](https://github.com/leancloud/open/commit/93c212d)) 118 | * **travis:** build error ([14338d8](https://github.com/leancloud/open/commit/14338d8)) 119 | * cht -> chs ([06da656](https://github.com/leancloud/open/commit/06da656)) 120 | * ci error ([b682143](https://github.com/leancloud/open/commit/b682143)) 121 | * **travis:** celluloid release was pulled (yanked) ([eaee434](https://github.com/leancloud/open/commit/eaee434)) 122 | 123 | ### Features 124 | 125 | * **template:** /avoscloud.com/leancloud.cn/ ([e624189](https://github.com/leancloud/open/commit/e624189)) 126 | * basic file structure ([02726fd](https://github.com/leancloud/open/commit/02726fd)) 127 | * thinner footer ([c9704ca](https://github.com/leancloud/open/commit/c9704ca)) 128 | * **docs:** update guide ([c39b94b](https://github.com/leancloud/open/commit/c39b94b)) 129 | * boost Jekyll performance up to 30%, yay. ([7ab9d1e](https://github.com/leancloud/open/commit/7ab9d1e)) 130 | * more string replaced ([8cf0779](https://github.com/leancloud/open/commit/8cf0779)) 131 | * smaller base font size ([757b831](https://github.com/leancloud/open/commit/757b831)) 132 | * update `favicon.ico` ([9181a0c](https://github.com/leancloud/open/commit/9181a0c)) 133 | * **style:** heading tweaks ([e4bd678](https://github.com/leancloud/open/commit/e4bd678)) 134 | * update to latest AMSF ([ed60121](https://github.com/leancloud/open/commit/ed60121)) 135 | * **grunt:** simplify banner ([8d9f345](https://github.com/leancloud/open/commit/8d9f345)) 136 | * **post:** add modified date ([bf56df9](https://github.com/leancloud/open/commit/bf56df9)) 137 | * **post:** update company name guide ([c26cd45](https://github.com/leancloud/open/commit/c26cd45)) 138 | * **script:** vanity variables ([b2ac56b](https://github.com/leancloud/open/commit/b2ac56b)) 139 | * **style:** dynamic text color for `code` and `pre` ([1e15e6b](https://github.com/leancloud/open/commit/1e15e6b)) 140 | * **template:** /AVOS Cloud/LeanCloud/, /avoscloud/leancloud/ ([3fa0817](https://github.com/leancloud/open/commit/3fa0817)) 141 | * **template:** add `lang` YAML front-matter data ([de37618](https://github.com/leancloud/open/commit/de37618)) 142 | * **template:** enable alternative title size ([3cfc365](https://github.com/leancloud/open/commit/3cfc365)) 143 | * **template:** hide placeholder posts from Atom feed ([56cf51f](https://github.com/leancloud/open/commit/56cf51f)) 144 | * **template:** remove `amsf` option, add `clean_homepage` and `credits` options ([ac07b75](https://github.com/leancloud/open/commit/ac07b75)) 145 | * **theme:** update template for new AMSF structure ([b0529ee](https://github.com/leancloud/open/commit/b0529ee)) 146 | 147 | 148 | ### BREAKING CHANGES 149 | 150 | * Now you can define `lang` tag for your post, simply add `lang` to your post front-matter data, for example: 151 | ``` 152 | lang: ar 153 | ``` 154 | then define your own styles in `custom.less`: 155 | ```css 156 | [lang=ar] { 157 | direction: rtl; 158 | } 159 | ``` 160 | * Please note that templates should be updated for new options 161 | 162 | 163 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Help Me Improve This Site 2 | 3 | If you found bugs and you know how to solve it, please fork this project, fix them and submit them via a [Pull Request](https://help.github.com/articles/using-pull-requests). 4 | 5 | If you have typos or corrections contributions, please initiate a discussion via a new issue. -------------------------------------------------------------------------------- /CONVENTIONS.md: -------------------------------------------------------------------------------- 1 | ## Git Commit Guidelines 2 | 3 | These rules are adopted from [the AngularJS commit conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/). 4 | 5 | ### Commit Message Format 6 | Each commit message consists of a **header**, a **body** and a **footer**. The header has a special format that includes a **type**, a **scope** and a **subject**: 7 | 8 | ``` 9 | (): 10 | 11 | 12 | 13 |