Categorize more pages

This commit is contained in:
Rico Sta. Cruz 2015-11-24 15:48:01 +11:00
parent 63e68df7de
commit 0195460667
51 changed files with 83 additions and 13 deletions

View File

@ -4,13 +4,20 @@ html_class: home
{% include head.html %} {% include head.html %}
{% include site-header.html %} {% include site-header.html %}
<div class='pages-list'> {% for category in site.category_names %}
{% for page in site.pages %} <div class='pages-header'>
<a href="{{base}}{{ page.url }}"> <h2>{{ category }}</h2>
<span class='title'>{{ page.title }}</span> </div>
<span class='date'>{{ page.url }}</span> <div class='pages-list'>
</a> {% for page in site.pages %}
{% endfor %} {% if page.category == category %}
</div> <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 %} {% include foot.html %}

View File

@ -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

View File

@ -1,5 +1,6 @@
--- ---
title: Commander.js title: Commander.js
category: JavaScript
--- ---
### Initialize ### Initialize

View File

@ -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;

View File

@ -1,5 +1,6 @@
--- ---
title: CSS antialiasing title: CSS antialiasing
category: CSS
--- ---
* { * {

View File

@ -1,5 +1,6 @@
--- ---
title: CSS title: CSS background
category: CSS
--- ---
Background Background

View File

@ -1,5 +1,6 @@
--- ---
title: CSS flexbox title: CSS flexbox
category: CSS
--- ---
.container { .container {

View File

@ -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;

View File

@ -1,5 +1,6 @@
--- ---
title: CSS selectors title: CSS selectors
category: CSS
--- ---
[attr="value"] /* = exact */ [attr="value"] /* = exact */

1
css.md
View File

@ -1,5 +1,6 @@
--- ---
title: CSS tricks title: CSS tricks
category: CSS
--- ---
### Heading kerning pairs and ligature ### Heading kerning pairs and ligature

View File

@ -1,5 +1,6 @@
--- ---
title: Curl title: Curl
category: Command line
--- ---
Options: Options:

View File

@ -1,5 +1,6 @@
--- ---
title: Find title: Find
category: Command line
--- ---
### Usage ### Usage

View File

@ -1,5 +1,6 @@
--- ---
title: GitHub pages title: GitHub pages
category: Git
--- ---
$ echo "foobar.com" > CNAME $ echo "foobar.com" > CNAME

View File

@ -1,5 +1,6 @@
--- ---
title: Gulp title: Gulp
category: JavaScript
--- ---
* gulp-ruby-sass * gulp-ruby-sass

View File

@ -1,5 +1,6 @@
--- ---
title: Handlebars.js title: Handlebars.js
category: JavaScript
--- ---
### Helpers ### Helpers

View File

@ -1,5 +1,6 @@
--- ---
title: Harvey.js title: Harvey.js
category: JavaScript
--- ---
### Usage ### Usage

1
ie.md
View File

@ -1,5 +1,6 @@
--- ---
title: Internet Explorer title: Internet Explorer
category: HTML
--- ---
## CSS Selectors ## CSS Selectors

View File

@ -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

View File

@ -1,5 +1,6 @@
--- ---
title: Inkscape title: Inkscape
category: Apps
--- ---
### All ### All

View File

@ -1,5 +1,6 @@
--- ---
title: JavaScript workers title: JavaScript workers
category: JavaScript
--- ---
## Web workers ## Web workers

View File

@ -1,5 +1,6 @@
--- ---
title: jQuery CDN title: jQuery CDN
category: JavaScript
--- ---
### Google jQuery ### Google jQuery

View File

@ -1,5 +1,6 @@
--- ---
title: jQuery title: jQuery
category: JavaScript
--- ---
### Traversing ### Traversing

View File

@ -1,5 +1,6 @@
--- ---
title: applicationCache title: applicationCache
category: JavaScript
--- ---
### applicationCache checking ### applicationCache checking

View File

@ -1,5 +1,6 @@
--- ---
title: JavaScript arrays title: JavaScript arrays
category: JavaScript
--- ---
## JavaScript arrays ## JavaScript arrays

View File

@ -1,5 +1,6 @@
--- ---
title: JavaScript Date title: JavaScript Date
category: JavaScript
--- ---
### Constructor ### Constructor

View File

@ -1,5 +1,6 @@
--- ---
title: Js-Model title: Js-Model
category: JavaScript
--- ---
Project = Model "project", -> Project = Model "project", ->

View File

@ -1,5 +1,6 @@
--- ---
title: jscoverage title: jscoverage
category: JavaScript
--- ---
Also see [mocha-blanket](mocha-blanket.html). Also see [mocha-blanket](mocha-blanket.html).

View File

@ -1,5 +1,6 @@
--- ---
title: Node.js - assert title: assert
category: Node.js
--- ---
assert(val) assert(val)

View File

@ -1,5 +1,6 @@
--- ---
title: Node.js - fs title: fs
category: Node.js
--- ---
### Reading ### Reading

View File

@ -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" */

View File

@ -1,5 +1,6 @@
--- ---
title: Node.js - process title: process
category: Node.js
--- ---
### Streams ### Streams

View File

@ -1,5 +1,6 @@
--- ---
title: Node.js API title: Node.js API
category: Node.js
--- ---
## Globals ## Globals

View File

@ -1,5 +1,6 @@
--- ---
title: Nopt title: Nopt
category: JavaScript
--- ---
```js ```js

1
npm.md
View File

@ -1,5 +1,6 @@
--- ---
title: npm title: npm
category: JavaScript
--- ---
npm install npm install

1
tig.md
View File

@ -1,5 +1,6 @@
--- ---
title: Tig title: Tig
category: Git
--- ---
### Installing ### Installing

View File

@ -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

View File

@ -1,5 +1,6 @@
--- ---
title: Underscore-string title: Underscore-string
category: JavaScript
--- ---
### Usage ### Usage

View File

@ -1,5 +1,6 @@
--- ---
title: Vim digraphs title: Vim digraphs
category: Vim
--- ---
### Typing digraphs in insert mode ### Typing digraphs in insert mode

View File

@ -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

View File

@ -1,5 +1,6 @@
--- ---
title: Vim helpfiles title: Vim helpfiles
category: Vim
--- ---
``` ```

View File

@ -1,5 +1,6 @@
--- ---
title: Vim-rails title: Vim-rails
category: Vim
html_class: key-codes html_class: key-codes
--- ---

View File

@ -1,5 +1,6 @@
--- ---
title: Vim-Unite title: Vim-Unite
category: Vim
--- ---
### Usage ### Usage

1
vim.md
View File

@ -1,5 +1,6 @@
--- ---
title: vim title: vim
category: Vim
--- ---
* [Digraphs](vim-digraphs.html) * [Digraphs](vim-digraphs.html)

View File

@ -1,5 +1,6 @@
--- ---
title: Vimscript functions title: Vimscript functions
category: Vim
--- ---
Dictionaries Dictionaries

View File

@ -1,5 +1,6 @@
--- ---
title: Vimscript snippets title: Vimscript snippets
category: Vim
--- ---
### Bind function to key and command ### Bind function to key and command

View File

@ -1,5 +1,6 @@
--- ---
title: Vim script title: Vim script
category: Vim
hljs_languages: [vim] hljs_languages: [vim]
--- ---

View File

@ -1,5 +1,6 @@
--- ---
title: Vows title: Vows
category: JavaScript
--- ---
* [Vowsjs.org](http://vowsjs.org/) * [Vowsjs.org](http://vowsjs.org/)

View File

@ -1,5 +1,6 @@
--- ---
title: Webpack title: Webpack
category: JavaScript
--- ---
### Config ### Config

View File

@ -1,5 +1,6 @@
--- ---
title: Weechat title: Weechat
category: Apps
--- ---
### Keys ### Keys

View File

@ -1,5 +1,6 @@
--- ---
title: Weinre title: Weinre
category: JavaScript
--- ---
* [Weinre](http://people.apache.org/~pmuellr/weinre/) * [Weinre](http://people.apache.org/~pmuellr/weinre/)

View File

@ -1,5 +1,6 @@
--- ---
title: Yargs title: Yargs
category: JavaScript
--- ---
### Basic usage ### Basic usage