Categorize more pages
This commit is contained in:
parent
63e68df7de
commit
0195460667
|
@ -4,13 +4,20 @@ html_class: home
|
||||||
{% include head.html %}
|
{% include head.html %}
|
||||||
{% include site-header.html %}
|
{% include site-header.html %}
|
||||||
|
|
||||||
|
{% for category in site.category_names %}
|
||||||
|
<div class='pages-header'>
|
||||||
|
<h2>{{ category }}</h2>
|
||||||
|
</div>
|
||||||
<div class='pages-list'>
|
<div class='pages-list'>
|
||||||
{% for page in site.pages %}
|
{% for page in site.pages %}
|
||||||
|
{% if page.category == category %}
|
||||||
<a href="{{base}}{{ page.url }}">
|
<a href="{{base}}{{ page.url }}">
|
||||||
<span class='title'>{{ page.title }}</span>
|
<span class='title'>{{ page.title }}</span>
|
||||||
<span class='date'>{{ page.url }}</span>
|
<span class='date'>{{ page.url }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{% include foot.html %}
|
{% include foot.html %}
|
||||||
|
|
14
_config.yml
14
_config.yml
|
@ -26,6 +26,7 @@ defaults:
|
||||||
path: ""
|
path: ""
|
||||||
values:
|
values:
|
||||||
layout: "default"
|
layout: "default"
|
||||||
|
category: "Others"
|
||||||
|
|
||||||
# Site info
|
# Site info
|
||||||
url: http://ricostacruz.com/cheatsheets
|
url: http://ricostacruz.com/cheatsheets
|
||||||
|
@ -35,3 +36,16 @@ title: Cheatsheets
|
||||||
analytics:
|
analytics:
|
||||||
hostname: ricostacruz.com
|
hostname: ricostacruz.com
|
||||||
id: "UA-20473929-1"
|
id: "UA-20473929-1"
|
||||||
|
|
||||||
|
category_names:
|
||||||
|
- Ruby
|
||||||
|
- Ansible
|
||||||
|
- Git
|
||||||
|
- Apps
|
||||||
|
- JavaScript
|
||||||
|
- Node.js
|
||||||
|
- HTML
|
||||||
|
- CSS
|
||||||
|
- Command line
|
||||||
|
- VIM
|
||||||
|
- Others
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Commander.js
|
title: Commander.js
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
### Initialize
|
### Initialize
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: CSS animations
|
title: CSS animations
|
||||||
|
category: CSS
|
||||||
---
|
---
|
||||||
|
|
||||||
animation: bounce 300ms linear 100ms infinite alternate-reverse;
|
animation: bounce 300ms linear 100ms infinite alternate-reverse;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: CSS antialiasing
|
title: CSS antialiasing
|
||||||
|
category: CSS
|
||||||
---
|
---
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: CSS
|
title: CSS background
|
||||||
|
category: CSS
|
||||||
---
|
---
|
||||||
|
|
||||||
Background
|
Background
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: CSS flexbox
|
title: CSS flexbox
|
||||||
|
category: CSS
|
||||||
---
|
---
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: CSS font
|
title: CSS font
|
||||||
|
category: CSS
|
||||||
---
|
---
|
||||||
|
|
||||||
font: italic 400 14px / 1.5 sans-serif;
|
font: italic 400 14px / 1.5 sans-serif;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: CSS selectors
|
title: CSS selectors
|
||||||
|
category: CSS
|
||||||
---
|
---
|
||||||
|
|
||||||
[attr="value"] /* = exact */
|
[attr="value"] /* = exact */
|
||||||
|
|
1
css.md
1
css.md
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: CSS tricks
|
title: CSS tricks
|
||||||
|
category: CSS
|
||||||
---
|
---
|
||||||
|
|
||||||
### Heading kerning pairs and ligature
|
### Heading kerning pairs and ligature
|
||||||
|
|
1
curl.md
1
curl.md
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Curl
|
title: Curl
|
||||||
|
category: Command line
|
||||||
---
|
---
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
1
find.md
1
find.md
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Find
|
title: Find
|
||||||
|
category: Command line
|
||||||
---
|
---
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: GitHub pages
|
title: GitHub pages
|
||||||
|
category: Git
|
||||||
---
|
---
|
||||||
|
|
||||||
$ echo "foobar.com" > CNAME
|
$ echo "foobar.com" > CNAME
|
||||||
|
|
1
gulp.md
1
gulp.md
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Gulp
|
title: Gulp
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
* gulp-ruby-sass
|
* gulp-ruby-sass
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Handlebars.js
|
title: Handlebars.js
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
### Helpers
|
### Helpers
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Harvey.js
|
title: Harvey.js
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
### Usage
|
### Usage
|
1
ie.md
1
ie.md
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Internet Explorer
|
title: Internet Explorer
|
||||||
|
category: HTML
|
||||||
---
|
---
|
||||||
|
|
||||||
## CSS Selectors
|
## CSS Selectors
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: IE bugs
|
title: IE bugs
|
||||||
|
category: HTML
|
||||||
---
|
---
|
||||||
|
|
||||||
### IE8: 'change' event doesn't always fire
|
### IE8: 'change' event doesn't always fire
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Inkscape
|
title: Inkscape
|
||||||
|
category: Apps
|
||||||
---
|
---
|
||||||
|
|
||||||
### All
|
### All
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: JavaScript workers
|
title: JavaScript workers
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
## Web workers
|
## Web workers
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: jQuery CDN
|
title: jQuery CDN
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
### Google jQuery
|
### Google jQuery
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: jQuery
|
title: jQuery
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
### Traversing
|
### Traversing
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: applicationCache
|
title: applicationCache
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
### applicationCache checking
|
### applicationCache checking
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: JavaScript arrays
|
title: JavaScript arrays
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
## JavaScript arrays
|
## JavaScript arrays
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: JavaScript Date
|
title: JavaScript Date
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
### Constructor
|
### Constructor
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Js-Model
|
title: Js-Model
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
Project = Model "project", ->
|
Project = Model "project", ->
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: jscoverage
|
title: jscoverage
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
Also see [mocha-blanket](mocha-blanket.html).
|
Also see [mocha-blanket](mocha-blanket.html).
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Node.js - assert
|
title: assert
|
||||||
|
category: Node.js
|
||||||
---
|
---
|
||||||
|
|
||||||
assert(val)
|
assert(val)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Node.js - fs
|
title: fs
|
||||||
|
category: Node.js
|
||||||
---
|
---
|
||||||
|
|
||||||
### Reading
|
### Reading
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Node.js - path
|
title: path
|
||||||
|
category: Node.js
|
||||||
---
|
---
|
||||||
|
|
||||||
fs.realpath('/etc/passwd', function(err, path) { /* "/private/etc/passwd" */
|
fs.realpath('/etc/passwd', function(err, path) { /* "/private/etc/passwd" */
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Node.js - process
|
title: process
|
||||||
|
category: Node.js
|
||||||
---
|
---
|
||||||
|
|
||||||
### Streams
|
### Streams
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Node.js API
|
title: Node.js API
|
||||||
|
category: Node.js
|
||||||
---
|
---
|
||||||
|
|
||||||
## Globals
|
## Globals
|
||||||
|
|
1
nopt.md
1
nopt.md
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Nopt
|
title: Nopt
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|
1
npm.md
1
npm.md
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: npm
|
title: npm
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
npm install
|
npm install
|
||||||
|
|
1
tig.md
1
tig.md
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Tig
|
title: Tig
|
||||||
|
category: Git
|
||||||
---
|
---
|
||||||
|
|
||||||
### Installing
|
### Installing
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Deploy gh-pages via Travis
|
title: Deploy gh-pages via Travis
|
||||||
|
category: Git
|
||||||
---
|
---
|
||||||
|
|
||||||
Taken from https://medium.com/@nthgergo/publishing-gh-pages-with-travis-ci-53a8270e87db
|
Taken from https://medium.com/@nthgergo/publishing-gh-pages-with-travis-ci-53a8270e87db
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Underscore-string
|
title: Underscore-string
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Vim digraphs
|
title: Vim digraphs
|
||||||
|
category: Vim
|
||||||
---
|
---
|
||||||
|
|
||||||
### Typing digraphs in insert mode
|
### Typing digraphs in insert mode
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
title: Vim Easyalign
|
title: Vim Easyalign
|
||||||
html_class: key-codes
|
html_class: key-codes
|
||||||
hljs_languages: [vim]
|
hljs_languages: [vim]
|
||||||
|
category: Vim
|
||||||
---
|
---
|
||||||
|
|
||||||
## Command mode
|
## Command mode
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Vim helpfiles
|
title: Vim helpfiles
|
||||||
|
category: Vim
|
||||||
---
|
---
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Vim-rails
|
title: Vim-rails
|
||||||
|
category: Vim
|
||||||
html_class: key-codes
|
html_class: key-codes
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Vim-Unite
|
title: Vim-Unite
|
||||||
|
category: Vim
|
||||||
---
|
---
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
1
vim.md
1
vim.md
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: vim
|
title: vim
|
||||||
|
category: Vim
|
||||||
---
|
---
|
||||||
|
|
||||||
* [Digraphs](vim-digraphs.html)
|
* [Digraphs](vim-digraphs.html)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Vimscript functions
|
title: Vimscript functions
|
||||||
|
category: Vim
|
||||||
---
|
---
|
||||||
|
|
||||||
Dictionaries
|
Dictionaries
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Vimscript snippets
|
title: Vimscript snippets
|
||||||
|
category: Vim
|
||||||
---
|
---
|
||||||
|
|
||||||
### Bind function to key and command
|
### Bind function to key and command
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Vim script
|
title: Vim script
|
||||||
|
category: Vim
|
||||||
hljs_languages: [vim]
|
hljs_languages: [vim]
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
1
vows.md
1
vows.md
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Vows
|
title: Vows
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
* [Vowsjs.org](http://vowsjs.org/)
|
* [Vowsjs.org](http://vowsjs.org/)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Webpack
|
title: Webpack
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
### Config
|
### Config
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Weechat
|
title: Weechat
|
||||||
|
category: Apps
|
||||||
---
|
---
|
||||||
|
|
||||||
### Keys
|
### Keys
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
title: Weinre
|
title: Weinre
|
||||||
|
category: JavaScript
|
||||||
---
|
---
|
||||||
|
|
||||||
* [Weinre](http://people.apache.org/~pmuellr/weinre/)
|
* [Weinre](http://people.apache.org/~pmuellr/weinre/)
|
||||||
|
|
Loading…
Reference in New Issue