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