From 6588af40b454cebc824a298367898b38d93a0b79 Mon Sep 17 00:00:00 2001 From: Gabriel Dunne Date: Fri, 16 Jun 2023 12:14:31 -0700 Subject: [PATCH] Working out pagination --- _config.yml | 6 +- _includes/nav.html | 60 ++++++++--------- _layouts/default.html | 40 +++++------ _layouts/index.html | 67 +++++++++---------- _layouts/post.html | 17 +---- _posts/2007-12-12-mel-notepad.md | 1 - _posts/2011-05-24-clmpr.md | 2 +- _posts/2011-07-07-bootable_iso.md | 1 + _posts/2011-08-11-terminal_emulator_on_win.md | 2 - _posts/2011-09-19-mostused.md | 2 + _posts/2011-11-09-osx_command_line_audio.md | 2 + _posts/2011-11-14-osx_print_json.md | 2 + _posts/2012-01-02-archlinux_install.md | 2 + _posts/2013-09-16-gen_semitones.md | 9 +-- about.md | 7 ++ archive-c.html | 19 ------ archive-d.html | 23 ------- archive-i.html | 23 ------- css/style.css | 57 +++++++++++++--- index.html | 46 ++++++------- 20 files changed, 175 insertions(+), 213 deletions(-) create mode 100644 about.md delete mode 100644 archive-c.html delete mode 100644 archive-d.html delete mode 100644 archive-i.html diff --git a/_config.yml b/_config.yml index a324396..bd950ee 100644 --- a/_config.yml +++ b/_config.yml @@ -21,14 +21,14 @@ title: quilime.com baseurl: "" # the subpath of your site, e.g. /blog url: "https://quilime.com" # the base hostname & protocol for your site, e.g. http://example.com +excerpt_separator: "" permalink: /:categories/:title:output_ext # Build settings plugins: - jekyll-feed - jekyll-paginate - -paginate: 5 - +paginate: 10 +paginate_path: "/page:num/" defaults: - scope: diff --git a/_includes/nav.html b/_includes/nav.html index 5cb1811..a5cda5f 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -1,36 +1,34 @@ - \ No newline at end of file +
  •  
  • +
  • notes
  • +
  • archive
  • +
  • rss
  • + diff --git a/_layouts/default.html b/_layouts/default.html index a046bfd..c5af472 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,29 +1,23 @@ - - - - +--- +layout: index +--- - {{ page.title }} +
    - - +

    — {{ page.title }}

    - - - - +
    + {{content}} +
    - - +{% if page.tags %} + +{% endif %} - +
    posted {{ page.date }}
    -
    - {{ content }} -
    - - - \ No newline at end of file +
    \ No newline at end of file diff --git a/_layouts/index.html b/_layouts/index.html index a79b7dd..5ee389a 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -1,34 +1,33 @@ ---- -layout: default ---- - - - -{% for post in paginator.posts %} -
    -

    — {{ post.title }}

    -
    - {{ post.content }} -
    -
    -{% endfor %} - - - - + + + + + + {{ page.title }} + + + + + + + + + + + + + + +
    + {{ content }} +
    + + + \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index 46d5747..5e71126 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -2,19 +2,4 @@ layout: default --- -
    - -

    — {{ page.title }}

    - -
    - {{content}} -
    - - tags -
      - {% for tag in page.tags %} -
    • {{ tag }}
    • - {% endfor %} -
    - -
    \ No newline at end of file +{{ content }} diff --git a/_posts/2007-12-12-mel-notepad.md b/_posts/2007-12-12-mel-notepad.md index 4d4ba77..0c2bb38 100644 --- a/_posts/2007-12-12-mel-notepad.md +++ b/_posts/2007-12-12-mel-notepad.md @@ -2,7 +2,6 @@ date: 2007-12-12 title: MEL Notepad tags: mel maya -layout: post --- mel notepad with various code snippets diff --git a/_posts/2011-05-24-clmpr.md b/_posts/2011-05-24-clmpr.md index 22423c0..bb35862 100644 --- a/_posts/2011-05-24-clmpr.md +++ b/_posts/2011-05-24-clmpr.md @@ -11,4 +11,4 @@ clmpr (clumper) is an open-source multi-user bookmarking engine, inspired by the demo: clmpr.com source: http://github.com/quilime/clmpr - \ No newline at end of file + diff --git a/_posts/2011-07-07-bootable_iso.md b/_posts/2011-07-07-bootable_iso.md index 43df631..8c39372 100644 --- a/_posts/2011-07-07-bootable_iso.md +++ b/_posts/2011-07-07-bootable_iso.md @@ -22,3 +22,4 @@ Bonus tip! You want to see how far the `dd` copy is coming along? Run in another $ sudo killall -INFO dd
    The process info will display in the original terminal. + \ No newline at end of file diff --git a/_posts/2011-08-11-terminal_emulator_on_win.md b/_posts/2011-08-11-terminal_emulator_on_win.md index c2ebb94..8ae8777 100644 --- a/_posts/2011-08-11-terminal_emulator_on_win.md +++ b/_posts/2011-08-11-terminal_emulator_on_win.md @@ -13,7 +13,6 @@ How to install cygwin on windows: - xorg-docs (optional, man pages) - X-start-menu-icons (optional, adds shortcuts to X Clients and Server to the Start menu) - mintty (windows-feel terminal) -
    3. **Optional Packages** - openssh @@ -23,7 +22,6 @@ How to install cygwin on windows: - vim, emacs - any additional fonts -
    diff --git a/_posts/2011-09-19-mostused.md b/_posts/2011-09-19-mostused.md index 4aa8575..2ff168d 100644 --- a/_posts/2011-09-19-mostused.md +++ b/_posts/2011-09-19-mostused.md @@ -5,6 +5,8 @@ layout: post --- `history | awk {'print $2'} | sort | uniq -c | sort -k1 -rn | head` + + example ```prettyprint // brand new netbook diff --git a/_posts/2011-11-09-osx_command_line_audio.md b/_posts/2011-11-09-osx_command_line_audio.md index dc52a62..adaeb9b 100644 --- a/_posts/2011-11-09-osx_command_line_audio.md +++ b/_posts/2011-11-09-osx_command_line_audio.md @@ -11,6 +11,8 @@ Install sox by either downloading the OSX binary from homebrew, and then install sox with brew install sox + + ##Examples cat audio from /dev/urandom/ : diff --git a/_posts/2011-11-14-osx_print_json.md b/_posts/2011-11-14-osx_print_json.md index b40c762..a24625f 100644 --- a/_posts/2011-11-14-osx_print_json.md +++ b/_posts/2011-11-14-osx_print_json.md @@ -7,6 +7,8 @@ layout: post 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. + + via the command line: format json diff --git a/_posts/2012-01-02-archlinux_install.md b/_posts/2012-01-02-archlinux_install.md index 4230e2b..4045acb 100644 --- a/_posts/2012-01-02-archlinux_install.md +++ b/_posts/2012-01-02-archlinux_install.md @@ -7,6 +7,8 @@ layout: post Documentation of the process of installing [archlinux](http://www.archlinux.org/) and Windows 7 in a dual-boot configuration. + + ## System Specs - AMD X2 dual-core processor, running at 2.8 ghz, circa 2002 diff --git a/_posts/2013-09-16-gen_semitones.md b/_posts/2013-09-16-gen_semitones.md index 7356edb..6a4cda0 100644 --- a/_posts/2013-09-16-gen_semitones.md +++ b/_posts/2013-09-16-gen_semitones.md @@ -3,8 +3,7 @@ title: Generate Semitones date: 2013-09-16 --- -
    -
    +```prettyprint
     #!/bin/perl
     my $m = 2 ** (1/12);
     foreach my $s (0..12) {
    @@ -26,6 +25,8 @@ semitone - fine
     10 - 782 
     11 - 888 
     12 - 1000
    -
    +``` + +[gist](https://gist.github.com/quilime/59fc3af7c5f30ca2399f#file-semitones-pl) + -[gist](https://gist.github.com/quilime/59fc3af7c5f30ca2399f#file-semitones-pl) \ No newline at end of file diff --git a/about.md b/about.md new file mode 100644 index 0000000..62619a0 --- /dev/null +++ b/about.md @@ -0,0 +1,7 @@ +--- +title: about +--- + +quilime.com is a collection of code, experiments, and process + +© 1999—{{ "now" | date: "%Y" }} [~gld](https://gabrieldunne.com) diff --git a/archive-c.html b/archive-c.html deleted file mode 100644 index c45ad61..0000000 --- a/archive-c.html +++ /dev/null @@ -1,19 +0,0 @@ ---- -layout: default -title: archive ---- - -{% include archive-sort.html %} - -
    - -

    {{ category | first }}

    - - -
    diff --git a/archive-d.html b/archive-d.html deleted file mode 100644 index 8ba81e9..0000000 --- a/archive-d.html +++ /dev/null @@ -1,23 +0,0 @@ ---- -layout: default -title: archive ---- - -{% include archive-sort.html %} - -
      - {% for post in site.posts %} - {% capture day %}{{ post.date | date: '%Y' }}{% endcapture %} - {% capture nday %}{{ post.next.date | date: '%Y' }}{% endcapture %} - {% if day != nday %} -

      {{ post.date | date: "%Y" }}

      - {% endif %} -
    • -

      {{ post.title }}

      -
    • - {% endfor %} -

      ∞

      -
    • -

      PAST WORK

      -
    • -
    diff --git a/archive-i.html b/archive-i.html deleted file mode 100644 index 2bea528..0000000 --- a/archive-i.html +++ /dev/null @@ -1,23 +0,0 @@ ---- -layout: default -title: archive ---- - -{% include archive-sort.html %} - -
      - {% for post in site.posts %} - {% capture day %}{{ post.date | date: '%Y' }}{% endcapture %} - {% capture nday %}{{ post.next.date | date: '%Y' }}{% endcapture %} -
    • - - - -
    • - {% endfor %} -
    • - - - -
    • -
    diff --git a/css/style.css b/css/style.css index 953c65b..9e1b7b8 100644 --- a/css/style.css +++ b/css/style.css @@ -8,11 +8,10 @@ body, table { font-size:14px; line-height:1.4em; } - body { background: var(--bg-color); padding:0; - margin:4em; + margin:2em; color: #ddd; } a { @@ -52,6 +51,10 @@ h1 a { } h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover { } +h5 { + font-size:12px; + font-weight: normal +} ul, li { @@ -98,21 +101,52 @@ table, td, tr { } #content { - padding-left: 160px; - margin-top:20px; - padding-bottom: 20px; + position: absolute; + z-index: -1; + top:2em; + padding-left: 160px; + padding-bottom: 20px; } #content.single { padding-top:0; } -#nextprev { - padding:0 50px 10px 150px; +span.nextprev { +} +span.nextprev span { + width: 2em; + line-height:2em; + display: inline-block; + text-align: center; + height: 2em; + background:#444; + margin:0 3px; + font-size: 20px; + color:#777; +} +span.nextprev span a { + display:inline-block; + width:100%; + height:100%; + color:var(--link-color); } +.more { +/* font-weight: normal;*/ + text-transform: uppercase; + font-style: italic; + font-size: 10px; + color:#555; + text-decoration: underline; +} +.more:hover { + color:#999; + letter-spacing: 0.1em; +} #nav { +/*display:none;*/ position:fixed; top:0; left:0; @@ -128,8 +162,7 @@ table, td, tr { .entry { - padding-bottom:20px; - margin-bottom:100px; + margin-bottom: 4em; } .entry .metadata { /*visibility:hidden;*/ @@ -145,7 +178,7 @@ table, td, tr { } .entry h1 { - margin-bottom:5px; + margin-bottom:1em; position:relative; left:-1.65em; } @@ -207,3 +240,7 @@ ul.image { background:#131313; padding:20px; } + +._c { + display: none; +} \ No newline at end of file diff --git a/index.html b/index.html index 2bb9498..b0ef9ce 100644 --- a/index.html +++ b/index.html @@ -2,33 +2,33 @@ layout: index --- - - -{% for post in paginator.posts %} -
    -

    — {{ post.title }}

    -
    - {{ post.content }} -
    + +
    + {% for post in paginator.posts %} +
    +

    — {{ post.title }}

    +

    {{ post.excerpt }}

    + more... +
    + {% endfor %}
    -{% endfor %} - + -- 2.34.1