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 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 %}

View File

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

View File

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

View File

@ -1,5 +1,6 @@
---
title: CSS animations
category: CSS
---
animation: bounce 300ms linear 100ms infinite alternate-reverse;

View File

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

View File

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

View File

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

View File

@ -1,5 +1,6 @@
---
title: CSS font
category: CSS
---
font: italic 400 14px / 1.5 sans-serif;

View File

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

1
css.md
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

1
ie.md
View File

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

View File

@ -1,5 +1,6 @@
---
title: IE bugs
category: HTML
---
### IE8: 'change' event doesn't always fire

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,6 @@
---
title: Node.js - fs
title: fs
category: Node.js
---
### 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" */

View File

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

View File

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

View File

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

1
npm.md
View File

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

1
tig.md
View File

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

View File

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

View File

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

View File

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

View File

@ -2,6 +2,7 @@
title: Vim Easyalign
html_class: key-codes
hljs_languages: [vim]
category: Vim
---
## Command mode

View File

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

View File

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

View File

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

1
vim.md
View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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