- 2012-01-16: TABs vs Spaces. The end of the debate.
> It doesn’t matter whether you use TABs or space, for indenting, as long as you use just spaces for aligning.
> It doesn’t matter whether you use TABs or space, for indenting, as long as you use just spaces for aligning.
Here record some tips of jekyll when I set up sites with it.
BOM! UTF-8 BOM in Windows' text editors would bring any post with YAML head matter down!/_posts folder, the category can not set. And the category would be the folder name which the post put in./pageN/ and use /index.html for index. Can not customize as /blog/page/N/. (Issue here)| /* | |
| * elf JavaScript Library | |
| * | |
| * create: | |
| * @2010-2-27 By mytharcher | |
| * | |
| * update: | |
| * @2010-04-12 By mytharcher | |
| * @2010-04-20 By mytharcher | |
| * @2010-04-27 By mytharcher |
| /* | |
| * jslib JavaScript Library | |
| * | |
| * create: | |
| * @2011-11-30 by mytharcher | |
| * | |
| * update: | |
| */ | |
| ///import js.util.Class; |
| # | |
| # File compressor plugin for jekyll | |
| # ================================= | |
| # | |
| # By [mytharcher](https://github.com/mytharcher) | |
| # 2012-05-20 | |
| # | |
| # Updated by [nicoespeon](https://github.com/nicoespeon) | |
| # 2013-04-12 | |
| # |
| # references.rb: jekyll markdown references plugin | |
| # | |
| # add this file to your _plugins directory (create it if needed) | |
| # create a file (exactly) named _references.md in your Jekyll site root, | |
| # then add your markdown reference-style link definitions to it. | |
| # for example: | |
| # [jsshaper]: http://jsshaper.org "an extensible framework for JavaScript syntax tree shaping" | |
| # | |
| # you can now reference these links in any markdown file | |
| # for example: |
| #!/bin/sh | |
| WORK_BASE=$(pwd) | |
| CLIENT_DIR=$WORK_BASE/un-web-client/src/main/webapp | |
| TEMP_DIR=$WORK_BASE/building_temp | |
| cd $CLIENT_DIR | |
| ### process *.html -> tpl.html | |
| sed 's/.*"\(.*\.html\)".*/\1/' "assets/js/~template.js" | grep tpl | xargs cat | |
| #!/bin/bash | |
| #Change all txt file from Windows form to Max form. | |
| for post in $(find . -type f) | |
| do | |
| # echo $post | |
| cat $post > temp.md | |
| mv -f ./temp.md $post | |
| done |