~gpanders/gpanders.com

8a8e17283e9ef0cf89243bfb08971f4163258722 — Gregory Anders 4 months ago 4d931b7
Move projects to data folder

This prevents pages being created for individual projects and also omits
them from the RSS index.
17 files changed, 65 insertions(+), 76 deletions(-)

M assets/css/base.tpl.css
M assets/css/syntax/light.css
M config.toml
A content/projects/_index.md
R content/projects/dotfiles.md => data/projects/dotfiles.yaml
R content/projects/gandi-cli.md => data/projects/gandi-cli.yaml
R content/projects/garchive.md => data/projects/garchive.yaml
R content/projects/ijq.md => data/projects/ijq.yaml
R content/projects/meta-scipy.md => data/projects/meta-scipy.yaml
R content/projects/pushbroom.md => data/projects/pushbroom.yaml
R content/projects/ual.md => data/projects/ual.yaml
R content/projects/vim-medieval.md => data/projects/vim-medieval.yaml
R content/projects/vim-oldfiles.md => data/projects/vim-oldfiles.yaml
R content/projects/wk.md => data/projects/wk.yaml
M layouts/partials/footer.html
M layouts/partials/link.html
M layouts/projects/list.html
M assets/css/base.tpl.css => assets/css/base.tpl.css +2 -2
@@ 85,8 85,8 @@ img {

pre {
  overflow-x: auto;
  border: 0.1rem solid var(--border-color);
  padding: 1rem;
  border: 0.1em solid var(--border-color);
  padding: 0.7em;
}

code {

M assets/css/syntax/light.css => assets/css/syntax/light.css +2 -0
@@ 1,3 1,4 @@
@media (prefers-color-scheme: light) {
/* Background */ .chroma {  }
/* Other */ .chroma .x {  }
/* Error */ .chroma .err {  }


@@ 80,3 81,4 @@
/* GenericTraceback */ .chroma .gt { color: #0044dd }
/* GenericUnderline */ .chroma .gl { text-decoration: underline }
/* TextWhitespace */ .chroma .w { color: #bbbbbb }
}

M config.toml => config.toml +5 -1
@@ 1,10 1,14 @@
baseURL = "https://gpanders.com/"
languageCode = "en-us"
author = "Gregory Anders"
title = "g.p. anders"
enableGitInfo = true
pluralizeListTitles = false
pygmentsUseClasses = true
copyright = "Content on this site is licensed CC BY-SA 4.0"

[author]
  name = "Gregory Anders"
  homepage = "https://gpanders.com"

[taxonomies]


A content/projects/_index.md => content/projects/_index.md +4 -0
@@ 0,0 1,4 @@
---
outputs:
  - HTML
---

R content/projects/dotfiles.md => data/projects/dotfiles.yaml +0 -3
@@ 1,6 1,3 @@
---
title: dotfiles
summary: My dotfiles
href: https://git.sr.ht/~gpanders/dotfiles
featured: true
---

R content/projects/gandi-cli.md => data/projects/gandi-cli.yaml +0 -2
@@ 1,5 1,3 @@
---
title: gandi-cli
summary: Command line interface to the Gandi API
href: https://git.sr.ht/~gpanders/gandi-cli
---

R content/projects/garchive.md => data/projects/garchive.yaml +0 -2
@@ 1,5 1,3 @@
---
title: garchive
summary: Ultra-simple front-end for a web archive
href: https://git.sr.ht/~gpanders/garchive
---

R content/projects/ijq.md => data/projects/ijq.yaml +10 -12
@@ 1,18 1,16 @@
---
title: ijq
summary: Interactive jq
href: https://sr.ht/~gpanders/ijq/
featured: true
---
description: >
  `ijq` is a command-line utility that provides an interactive interface to `jq`,
  the JSON processing tool. It provides a two pane TUI and an input field: as you
  write your `jq` query into the input field the JSON is processed in real time
  and lets you preview the result of your query interactively. `ijq` works in
  pipelines allowing it to be a near drop-in replacement for `jq`: when you close
  `ijq` the filtered JSON is written to `stdout` which allows you to consume it
  later in the pipeline.

`ijq` is a command-line utility that provides an interactive interface to `jq`,
the JSON processing tool. It provides a two pane TUI and an input field: as you
write your `jq` query into the input field the JSON is processed in real time
and lets you preview the result of your query interactively. `ijq` works in
pipelines allowing it to be a near drop-in replacement for `jq`: when you close
`ijq` the filtered JSON is written to `stdout` which allows you to consume it
later in the pipeline.
  Check out [a demo][asciicast]!

Check out [a demo][asciicast]!

[asciicast]: https://asciinema.org/a/396956
  [asciicast]: https://asciinema.org/a/396956

R content/projects/meta-scipy.md => data/projects/meta-scipy.yaml +3 -5
@@ 1,9 1,7 @@
---
title: meta-scipy
summary: OpenEmbedded layer for Scipy
href: https://github.com/gpanders/meta-scipy
featured: true
---

This layer brings [scipy](https://scipy.org) into the OpenEmbedded build
ecosystem.
description: >
  This layer brings [scipy](https://scipy.org) into the OpenEmbedded build
  ecosystem.

R content/projects/pushbroom.md => data/projects/pushbroom.yaml +4 -6
@@ 1,10 1,8 @@
---
title: pushbroom
summary: Sweep your filesystem clear of clutter
href: https://sr.ht/~gpanders/pushbroom
featured: true
---

`pushbroom` is a simple script that automatically removes old files from
specified directories which helps keep folders clear of clutter. I wrote about
the evolution of `pushbroom` [here]({{<relref "/blog/make-your-mac-clean-itself" >}}).
description: >
  `pushbroom` is a simple script that automatically removes old files from
  specified directories which helps keep folders clear of clutter. I wrote about
  the evolution of `pushbroom` [here](/blog/make-your-mac-clean-itself).

R content/projects/ual.md => data/projects/ual.yaml +0 -2
@@ 1,5 1,3 @@
---
title: ual
summary: The other half of man
href: https://git.sr.ht/~gpanders/ual
---

R content/projects/vim-medieval.md => data/projects/vim-medieval.yaml +6 -8
@@ 1,12 1,10 @@
---
title: vim-medieval
summary: Evaluate Markdown code blocks within Vim
href: https://github.com/gpanders/vim-medieval
featured: true
---

`vim-medieval` is a Vim plugin that enables you to evaluate code blocks in
Markdown buffers. The result of these evaluations can be written to other code
blocks within your document or to a file on your filesystem. Code blocks can
be combined together, allowing you to do a primitive style of literate
programming in Vim.
description: >
  `vim-medieval` is a Vim plugin that enables you to evaluate code blocks in
  Markdown buffers. The result of these evaluations can be written to other code
  blocks within your document or to a file on your filesystem. Code blocks can
  be combined together, allowing you to do a primitive style of literate
  programming in Vim.

R content/projects/vim-oldfiles.md => data/projects/vim-oldfiles.yaml +7 -9
@@ 1,14 1,12 @@
---
title: vim-oldfiles
summary: Improve Vim's native recent file history
href: https://github.com/gpanders/vim-oldfiles
featured: true
---
description: >
  `vim-oldfiles` is a simple Vim plugin in the spirit of [Tim Pope's Vim
  plugins][tpope] that aims to enhance native Vim functionality in a way that
  fits into the Vim paradigm. It improves Vim's built-in `:oldfiles` command by
  leveraging Vim's quickfix list and by updating the oldfiles list while the Vim
  session is active.

`vim-oldfiles` is a simple Vim plugin in the spirit of [Tim Pope's Vim
plugins][tpope] that aims to enhance native Vim functionality in a way that
fits into the Vim paradigm. It improves Vim's built-in `:oldfiles` command by
leveraging Vim's quickfix list and by updating the oldfiles list while the Vim
session is active.

[tpope]: https://github.com/tpope/
  [tpope]: https://github.com/tpope/

R content/projects/wk.md => data/projects/wk.yaml +8 -10
@@ 1,17 1,15 @@
---
title: wk
summary: Command line tool to manage a personal wiki
href: https://git.sr.ht/~gpanders/wk
featured: true
---
description: >
  `wk` is a simple command line tool inspired by the Zettelkasten note-taking
  system for managing a personal wiki or collection of notes.

`wk` is a simple command line tool inspired by the Zettelkasten note-taking
system for managing a personal wiki or collection of notes.
  This program has undergone multiple rewrites: it serves as my test program for
  experimenting in different languages. Over the course of its life, it has been
  written in bash, Python, Zig, and Nim.

This program has undergone multiple rewrites: it serves as my test program for
experimenting in different languages. Over the course of its life, it has been
written in bash, Python, Zig, and Nim.
  This is the tool I use to manage my own [collection of notes][notes].

This is the tool I use to manage my own [collection of notes][notes].

[notes]: https://notes.gpanders.com
  [notes]: https://notes.gpanders.com

M layouts/partials/footer.html => layouts/partials/footer.html +1 -1
@@ 1,3 1,3 @@
<footer class="footer">
<footer>
  <small>Content on this site is licensed <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a></small>
</footer>

M layouts/partials/link.html => layouts/partials/link.html +1 -1
@@ 1,5 1,5 @@
<link rel="canonical" href="{{ .Permalink }}">

{{ range .AlternativeOutputFormats }}
  {{ printf "<link rel=%q type=%q href=%q title=%q>" .Rel .MediaType .RelPermalink site.Title | safeHTML }}
  {{ printf "<link rel=%q type=%q href=%q title=%q>" .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end }}

M layouts/projects/list.html => layouts/projects/list.html +12 -12
@@ 1,17 1,17 @@
{{ define "main" }}

{{ .Content }}

{{ range where .Pages ".Params.featured" "eq" true  }}
  <p class="heading p-name"><a href="{{ .Param "href" }}">{{ .Title }}</a></p>
  {{ if .Content }}
    <details>
      <summary class="subheading">{{ .Summary }}</summary>
      <p>{{ .Content }}</p>
    </details>
  {{ else }}
    {{ with .Summary }}
      <p class="subheading">{{ . }}</p>
{{ range .Site.Data.projects }}
  {{ if .featured }}
    <p class="heading p-name"><a href="{{ .href }}">{{ .title }}</a></p>
    {{ if .description }}
      <details>
        <summary class="subheading">{{ .summary }}</summary>
        <p>{{ .description | markdownify }}</p>
      </details>
    {{ else }}
      {{ with .summary }}
        <p class="subheading">{{ . }}</p>
      {{ end }}
    {{ end }}
  {{ end }}
{{ end }}