From 0e8cb1e01838775eecc33726bf96e439bc5854f9 Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Fri, 16 Jun 2023 19:32:13 -0700 Subject: [PATCH] New layout --- _config.yml | 2 +- _layouts/cat.html | 7 +++++++ _layouts/default.html | 7 +++++-- .../{term => cmd}/2011-02-02-bash_profile_osx.md | 2 +- .../2011-03-11-bash_profile_linux.md | 2 +- _posts/{term => cmd}/2011-04-16-ssh_keys.md.md | 2 +- _posts/{term => cmd}/2011-04-27-windows_copy.md | 2 +- .../{term => cmd}/2011-05-10-osx_hidden_files.md | 2 +- .../2011-08-11-terminal_emulator_on_win.md | 2 +- _posts/{term => cmd}/2011-09-19-mostused.md | 2 +- .../2011-11-09-osx_command_line_audio.md | 4 ++-- _posts/{term => cmd}/2011-11-14-osx_print_json.md | 2 +- .../{term => cmd}/2012-01-02-archlinux_install.md | 2 +- ...09-18-fluid.md => 2013-09-18-cinder-td-top.md} | 0 _posts/snippets/2007-12-12-mel-notepad.md | 2 +- _posts/snippets/2009-04-23-bash-imageslice.md | 2 +- .../snippets/2009-06-12-mel-sphere_intersect.md | 2 +- .../2010-01-11-bash-rename_multiple_files.md | 2 +- .../snippets/2010-02-07-bash-date_for_filename.md | 2 +- .../2010-05-15-bash-rewrite_multiple_slashes.md | 2 +- _posts/snippets/2010-07-07-maya_render_bat.md | 2 +- .../2010-07-11-bash-resize_multiple_images.md | 2 +- _posts/snippets/2011-07-07-bootable_iso.md | 2 +- _posts/snippets/2013-04-19-htmlwordcount.md | 2 +- _posts/snippets/2013-09-16-gen_semitones.md | 2 +- .../snippets/2014-06-20-gifs_w_ffmpeg_gifsicle.md | 2 +- all.html | 15 ++++++++++----- cli.html | 13 +++++++++++++ code.html | 14 ++++++++++++++ css/style.css | 8 +++++--- index.html | 6 +++--- snippets.html | 13 +++++++++++++ 32 files changed, 94 insertions(+), 37 deletions(-) create mode 100644 _layouts/cat.html rename _posts/{term => cmd}/2011-02-02-bash_profile_osx.md (97%) rename _posts/{term => cmd}/2011-03-11-bash_profile_linux.md (93%) rename _posts/{term => cmd}/2011-04-16-ssh_keys.md.md (94%) rename _posts/{term => cmd}/2011-04-27-windows_copy.md (96%) rename _posts/{term => cmd}/2011-05-10-osx_hidden_files.md (96%) rename _posts/{term => cmd}/2011-08-11-terminal_emulator_on_win.md (99%) rename _posts/{term => cmd}/2011-09-19-mostused.md (96%) rename _posts/{term => cmd}/2011-11-09-osx_command_line_audio.md (98%) rename _posts/{term => cmd}/2011-11-14-osx_print_json.md (98%) rename _posts/{term => cmd}/2012-01-02-archlinux_install.md (99%) rename _posts/code/{2013-09-18-fluid.md => 2013-09-18-cinder-td-top.md} (100%) create mode 100644 cli.html create mode 100644 code.html create mode 100644 snippets.html diff --git a/_config.yml b/_config.yml index 0fadc28..f3b0f93 100644 --- a/_config.yml +++ b/_config.yml @@ -2,7 +2,7 @@ title: quilime.com baseurl: "" url: "https://quilime.com" excerpt_separator: "" -permalink: /:title:output_ext +permalink: /:categories/:title:output_ext plugins: - jekyll-feed - jekyll-paginate diff --git a/_layouts/cat.html b/_layouts/cat.html new file mode 100644 index 0000000..84ea3b3 --- /dev/null +++ b/_layouts/cat.html @@ -0,0 +1,7 @@ +--- +layout: index +--- + +

{{ page.title }}

+ +{{content}} diff --git a/_layouts/default.html b/_layouts/default.html index 11fcfa7..6f6bf54 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -11,14 +11,17 @@ layout: index {% if page.tags.size > 0 %} -
tags:
+
tags: {% for tag in page.tags %} {{ tag }}{% if forloop.last == false %}, {% endif %} {% endfor %} +
{% endif %} +
+ {% if page.date %} -
posted {{ page.date }}
+
posted {{ page.date }} in {{ page.category }}
{% endif %} \ No newline at end of file diff --git a/_posts/term/2011-02-02-bash_profile_osx.md b/_posts/cmd/2011-02-02-bash_profile_osx.md similarity index 97% rename from _posts/term/2011-02-02-bash_profile_osx.md rename to _posts/cmd/2011-02-02-bash_profile_osx.md index b921581..32cbe04 100644 --- a/_posts/term/2011-02-02-bash_profile_osx.md +++ b/_posts/cmd/2011-02-02-bash_profile_osx.md @@ -2,7 +2,7 @@ date: 2011-02-02 title: osx bash profile layout: post -category: term +category: cli ---
diff --git a/_posts/term/2011-03-11-bash_profile_linux.md b/_posts/cmd/2011-03-11-bash_profile_linux.md
similarity index 93%
rename from _posts/term/2011-03-11-bash_profile_linux.md
rename to _posts/cmd/2011-03-11-bash_profile_linux.md
index 0143ac1..3cd9a12 100644
--- a/_posts/term/2011-03-11-bash_profile_linux.md
+++ b/_posts/cmd/2011-03-11-bash_profile_linux.md
@@ -2,7 +2,7 @@
 title: linux bash profile
 date: march 11 2011
 layout: post
-category: term
+category: cli
 ---
 
 alias ls='ls --color'
diff --git a/_posts/term/2011-04-16-ssh_keys.md.md b/_posts/cmd/2011-04-16-ssh_keys.md.md
similarity index 94%
rename from _posts/term/2011-04-16-ssh_keys.md.md
rename to _posts/cmd/2011-04-16-ssh_keys.md.md
index 734101b..72aed49 100644
--- a/_posts/term/2011-04-16-ssh_keys.md.md
+++ b/_posts/cmd/2011-04-16-ssh_keys.md.md
@@ -2,7 +2,7 @@
 layout: post
 title: "create ssh keys"
 date: 2011-04-16
-category: term
+category: cli
 ---
 
 ssh-keygen -t rsa
diff --git a/_posts/term/2011-04-27-windows_copy.md b/_posts/cmd/2011-04-27-windows_copy.md
similarity index 96%
rename from _posts/term/2011-04-27-windows_copy.md
rename to _posts/cmd/2011-04-27-windows_copy.md
index 016d77c..d4627c6 100644
--- a/_posts/term/2011-04-27-windows_copy.md
+++ b/_posts/cmd/2011-04-27-windows_copy.md
@@ -3,7 +3,7 @@ title: "Combine Files (Windows)"
 date: Wed, april 27 2011
 tags: windows cmd console
 layout: post
-category: term
+category: cli
 ---
 
 copy /b file1+ file2 output
diff --git a/_posts/term/2011-05-10-osx_hidden_files.md b/_posts/cmd/2011-05-10-osx_hidden_files.md
similarity index 96%
rename from _posts/term/2011-05-10-osx_hidden_files.md
rename to _posts/cmd/2011-05-10-osx_hidden_files.md
index 5287203..7e19c6b 100644
--- a/_posts/term/2011-05-10-osx_hidden_files.md
+++ b/_posts/cmd/2011-05-10-osx_hidden_files.md
@@ -3,7 +3,7 @@ title: "show hidden files (OSX Finder)"
 date: "Tue May 10 21:03:45 PDT 2011"
 tags: osx
 layout: post
-category: term
+category: cli
 ---
 
 via Terminal
diff --git a/_posts/term/2011-08-11-terminal_emulator_on_win.md b/_posts/cmd/2011-08-11-terminal_emulator_on_win.md
similarity index 99%
rename from _posts/term/2011-08-11-terminal_emulator_on_win.md
rename to _posts/cmd/2011-08-11-terminal_emulator_on_win.md
index 02b8dae..28683f7 100644
--- a/_posts/term/2011-08-11-terminal_emulator_on_win.md
+++ b/_posts/cmd/2011-08-11-terminal_emulator_on_win.md
@@ -1,7 +1,7 @@
 ---
 title: "Terminal Emulator on Windows via Cygwin"
 date: august 11 2011
-category: term
+category: cli
 ---
 How to install cygwin on windows:
 
diff --git a/_posts/term/2011-09-19-mostused.md b/_posts/cmd/2011-09-19-mostused.md
similarity index 96%
rename from _posts/term/2011-09-19-mostused.md
rename to _posts/cmd/2011-09-19-mostused.md
index da32ae2..910298f 100644
--- a/_posts/term/2011-09-19-mostused.md
+++ b/_posts/cmd/2011-09-19-mostused.md
@@ -2,7 +2,7 @@
 title: command history
 date: "Mon Sep 19 19:39:51 PDT 2011"
 layout: post
-category: term
+category: cli
 ---
 `history | awk {'print $2'} | sort | uniq -c | sort -k1 -rn | head`
 
diff --git a/_posts/term/2011-11-09-osx_command_line_audio.md b/_posts/cmd/2011-11-09-osx_command_line_audio.md
similarity index 98%
rename from _posts/term/2011-11-09-osx_command_line_audio.md
rename to _posts/cmd/2011-11-09-osx_command_line_audio.md
index ff00b82..c65b5d0 100644
--- a/_posts/term/2011-11-09-osx_command_line_audio.md
+++ b/_posts/cmd/2011-11-09-osx_command_line_audio.md
@@ -3,7 +3,7 @@ title: "command line audio on OSX"
 date: "Wed, Nov  9  2011 18:40:26,  IST"
 tags: audio osx cli
 layout: post
-category: term
+category: cli
 ---
 
 Since there is no equivilent to /dev/dsp or /dev/audio on OSX, you need to install an alternative like sox.
@@ -14,7 +14,7 @@ install homebrew, and then instal
 
 
 
-##Examples
+## examples
 
 cat audio from /dev/urandom/ :
 
cat /dev/urandom | sox -traw -r44100 -b16 -u - -tcoreaudio
diff --git a/_posts/term/2011-11-14-osx_print_json.md b/_posts/cmd/2011-11-14-osx_print_json.md similarity index 98% rename from _posts/term/2011-11-14-osx_print_json.md rename to _posts/cmd/2011-11-14-osx_print_json.md index b539ebe..8901c98 100644 --- a/_posts/term/2011-11-14-osx_print_json.md +++ b/_posts/cmd/2011-11-14-osx_print_json.md @@ -3,7 +3,7 @@ title: print formatted JSON, XML from osx command line date: "mon, nov 14 2011" tags: bash shell python json xml osx layout: post -category: term +category: cli --- Working with various interfaces that output json or xml results in lots of situations where you have a single-line, unformatted output. Here's a quick way to format json, xml from the CLI. diff --git a/_posts/term/2012-01-02-archlinux_install.md b/_posts/cmd/2012-01-02-archlinux_install.md similarity index 99% rename from _posts/term/2012-01-02-archlinux_install.md rename to _posts/cmd/2012-01-02-archlinux_install.md index 404cd83..f0d98ee 100644 --- a/_posts/term/2012-01-02-archlinux_install.md +++ b/_posts/cmd/2012-01-02-archlinux_install.md @@ -3,7 +3,7 @@ title: "DualBoot Archlinux/Windows7 Installation" date: 2012-01-02 tags: arch linux windows installation tutorial layout: post -category: term +category: cli --- Documentation of the process of installing [archlinux](http://www.archlinux.org/) and Windows 7 in a dual-boot configuration. diff --git a/_posts/code/2013-09-18-fluid.md b/_posts/code/2013-09-18-cinder-td-top.md similarity index 100% rename from _posts/code/2013-09-18-fluid.md rename to _posts/code/2013-09-18-cinder-td-top.md diff --git a/_posts/snippets/2007-12-12-mel-notepad.md b/_posts/snippets/2007-12-12-mel-notepad.md index 854930a..d4b2f72 100644 --- a/_posts/snippets/2007-12-12-mel-notepad.md +++ b/_posts/snippets/2007-12-12-mel-notepad.md @@ -2,7 +2,7 @@ date: 2007-12-12 title: MEL Notepad tags: mel maya -category: snippet +category: snippets --- mel notepad with various code snippets diff --git a/_posts/snippets/2009-04-23-bash-imageslice.md b/_posts/snippets/2009-04-23-bash-imageslice.md index eedfbf9..49fe7bf 100644 --- a/_posts/snippets/2009-04-23-bash-imageslice.md +++ b/_posts/snippets/2009-04-23-bash-imageslice.md @@ -3,7 +3,7 @@ title: Image Slice date: 2009-04-23 tags: bash script slice image imagemagick lang: bash -category: snippet +category: snippets layout: post --- diff --git a/_posts/snippets/2009-06-12-mel-sphere_intersect.md b/_posts/snippets/2009-06-12-mel-sphere_intersect.md index f080eb2..9890ae7 100644 --- a/_posts/snippets/2009-06-12-mel-sphere_intersect.md +++ b/_posts/snippets/2009-06-12-mel-sphere_intersect.md @@ -4,7 +4,7 @@ title: "Sphere Intersect in Maya/MEL" tags: maya mel sphere intersection lang: mel layout: post -category: snippet +category: snippets ---

Function to return location of intersect with poly mesh and spherical object moving in the positive direction on the Y axis. diff --git a/_posts/snippets/2010-01-11-bash-rename_multiple_files.md b/_posts/snippets/2010-01-11-bash-rename_multiple_files.md index ee723d5..dcd6135 100644 --- a/_posts/snippets/2010-01-11-bash-rename_multiple_files.md +++ b/_posts/snippets/2010-01-11-bash-rename_multiple_files.md @@ -3,7 +3,7 @@ title: Rename Multiple Files via Shell tags: bash terminal rename date: 2010-01-11 layout: post -category: snippet +category: snippets ---

 ls | nl -nrz -w2 | while read a b; do mv "$b" filename.$a.png; done;
diff --git a/_posts/snippets/2010-02-07-bash-date_for_filename.md b/_posts/snippets/2010-02-07-bash-date_for_filename.md
index bb7fda3..edbfe5a 100644
--- a/_posts/snippets/2010-02-07-bash-date_for_filename.md
+++ b/_posts/snippets/2010-02-07-bash-date_for_filename.md
@@ -3,7 +3,7 @@ title: date for new filename
 lang: bash
 date: 2010-02-07
 layout: post
-category: snippet
+category: snippets
 ---
 
#!/bin/bash
 # Shell script to create file named after the current date
diff --git a/_posts/snippets/2010-05-15-bash-rewrite_multiple_slashes.md b/_posts/snippets/2010-05-15-bash-rewrite_multiple_slashes.md
index ab8a0a3..89286b8 100644
--- a/_posts/snippets/2010-05-15-bash-rewrite_multiple_slashes.md
+++ b/_posts/snippets/2010-05-15-bash-rewrite_multiple_slashes.md
@@ -3,7 +3,7 @@ date: 2010-05-15
 title: "Rewrite URL: Replace Double Slashes With Single Slash"
 tags: htaccess apache
 layout: post
-category: snippet
+category: snippets
 ---
 
 
diff --git a/_posts/snippets/2010-07-07-maya_render_bat.md b/_posts/snippets/2010-07-07-maya_render_bat.md
index 388efa8..41348ea 100644
--- a/_posts/snippets/2010-07-07-maya_render_bat.md
+++ b/_posts/snippets/2010-07-07-maya_render_bat.md
@@ -4,7 +4,7 @@ tags: maya render bat
 date: 2010-07-07
 hidden: true
 layout: post
-category: snippet
+category: snippets
 ---
 *.bat file structure
 
diff --git a/_posts/snippets/2010-07-11-bash-resize_multiple_images.md b/_posts/snippets/2010-07-11-bash-resize_multiple_images.md
index 9023d50..c1a482f 100644
--- a/_posts/snippets/2010-07-11-bash-resize_multiple_images.md
+++ b/_posts/snippets/2010-07-11-bash-resize_multiple_images.md
@@ -2,7 +2,7 @@
 title: resize multiple images
 date: 2010-07-11
 layout: post
-category: snippet
+category: snippets
 ---
 
for k in $(ls *.JPG); do convert $k -resize 50% -quality 80 r_$k; done
diff --git a/_posts/snippets/2011-07-07-bootable_iso.md b/_posts/snippets/2011-07-07-bootable_iso.md index 3901143..515418c 100644 --- a/_posts/snippets/2011-07-07-bootable_iso.md +++ b/_posts/snippets/2011-07-07-bootable_iso.md @@ -2,7 +2,7 @@ title: "create bootable iso from unix/osx terminal" date: july 7 2011 layout: post -category: snippet +category: snippets --- 1. diskutil list
diff --git a/_posts/snippets/2013-04-19-htmlwordcount.md b/_posts/snippets/2013-04-19-htmlwordcount.md index b162b26..2e0bccb 100644 --- a/_posts/snippets/2013-04-19-htmlwordcount.md +++ b/_posts/snippets/2013-04-19-htmlwordcount.md @@ -3,7 +3,7 @@ title: count words in html file with python date: 2013-04-19 tags: python code layout: post -category: snippet +category: snippets --- ```prettyprint-python diff --git a/_posts/snippets/2013-09-16-gen_semitones.md b/_posts/snippets/2013-09-16-gen_semitones.md index 223eed6..43b1687 100644 --- a/_posts/snippets/2013-09-16-gen_semitones.md +++ b/_posts/snippets/2013-09-16-gen_semitones.md @@ -1,7 +1,7 @@ --- title: Generate Semitones date: 2013-09-16 -category: snippet +category: snippets --- ```prettyprint diff --git a/_posts/snippets/2014-06-20-gifs_w_ffmpeg_gifsicle.md b/_posts/snippets/2014-06-20-gifs_w_ffmpeg_gifsicle.md index 929957f..329844c 100644 --- a/_posts/snippets/2014-06-20-gifs_w_ffmpeg_gifsicle.md +++ b/_posts/snippets/2014-06-20-gifs_w_ffmpeg_gifsicle.md @@ -1,7 +1,7 @@ --- date: 2014-06-20 title: creating gif from mov with ffmpeg and gifsicle -category: snippet +category: snippets ---
 ffmpeg -i in.mov -s 640x360 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=6 > out.gif
diff --git a/all.html b/all.html
index 894f125..e7a5fad 100644
--- a/all.html
+++ b/all.html
@@ -14,8 +14,10 @@ layout: index
 
 
-

code

+

open source

+
+ {% for post in site.categories.code %}

— {{ post.title }} {{ post.date | date: "%Y-%m-%d" }}

@@ -25,9 +27,11 @@ layout: index

-

snippet

+ +

code snippets

+
-{% for post in site.categories.snippet %} +{% for post in site.categories.snippets %}

— {{ post.title }} {{ post.date | date: "%Y-%m-%d" }}

@@ -36,9 +40,10 @@ layout: index

-

term

+

command line

+
-{% for post in site.categories.term %} +{% for post in site.categories.cli %}

— {{ post.title }} {{ post.date | date: "%Y-%m-%d" }}

diff --git a/cli.html b/cli.html new file mode 100644 index 0000000..a34f936 --- /dev/null +++ b/cli.html @@ -0,0 +1,13 @@ +--- +layout: cat +title: command line +--- + +
+
+ {% for post in site.categories.cli %} +
+

— {{ post.title }} {{ post.date | date: "%Y-%m-%d" }}

+
+ {% endfor %} +
diff --git a/code.html b/code.html new file mode 100644 index 0000000..18c22d8 --- /dev/null +++ b/code.html @@ -0,0 +1,14 @@ +--- +layout: cat +title: open source +--- + + +
+
+ {% for post in site.categories.code %} +
+

— {{ post.title }} {{ post.date | date: "%Y-%m-%d" }}

+
+ {% endfor %} +
diff --git a/css/style.css b/css/style.css index 59a4520..6f8b31c 100644 --- a/css/style.css +++ b/css/style.css @@ -55,6 +55,7 @@ h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover { h2, h3, h4, h5, h6 { font-size:1.3em; + font-weight: normal; } h3, h4, h5, h6 { font-size:1.0em; @@ -149,16 +150,17 @@ span.nextprev span a:hover { } .more { -/* font-weight: normal;*/ + font-weight:bold; text-transform: uppercase; font-style: italic; font-size: 10px; color:#555; text-decoration: underline; + letter-spacing: 0.1em; } .more:hover { - color:#999; - letter-spacing: 0.1em; + color:#f0f; + } diff --git a/index.html b/index.html index b0ef9ce..36acead 100644 --- a/index.html +++ b/index.html @@ -22,13 +22,13 @@ layout: index {% assign total_items = paginator.total_posts %} {% assign total_pages = paginator.total_pages %} - {{ start_item }}—{{ end_item | at_most: total_items }} of {{ total_items }} entries - {% endif %} - {% if paginator.previous_page %}{% else %}‹{% endif %} {% if paginator.next_page %}{% else %}›{% endif %} + {{ start_item }}—{{ end_item | at_most: total_items }} of {{ total_items }} entries + {% endif %} +
diff --git a/snippets.html b/snippets.html new file mode 100644 index 0000000..5655127 --- /dev/null +++ b/snippets.html @@ -0,0 +1,13 @@ +--- +layout: cat +title: snippets +--- + +
+
+ {% for post in site.categories.snippets %} +
+

— {{ post.title }} {{ post.date | date: "%Y-%m-%d" }}

+
+ {% endfor %} +
-- 2.34.1