From 130fdf3445b267c972fe051d139a88a201ac9888 Mon Sep 17 00:00:00 2001 From: t Date: Mon, 13 Jul 2026 11:35:19 -0600 Subject: move static content index pages (projects, notes, about) into markdown --- .gitignore | 1 + about/index.html.tmpl | 49 ------------------------------------------------ about/index.md | 28 +++++++++++++++++++++++++++ index.html.tmpl | 7 ++++--- notes/index.html.tmpl | 39 -------------------------------------- notes/index.md | 12 ++++++++++++ projects/index.html.tmpl | 49 ------------------------------------------------ projects/index.md | 25 ++++++++++++++++++++++++ site.tmpl | 6 +++++- style.css | 5 +++++ 10 files changed, 80 insertions(+), 141 deletions(-) delete mode 100644 about/index.html.tmpl create mode 100644 about/index.md delete mode 100644 notes/index.html.tmpl create mode 100644 notes/index.md delete mode 100644 projects/index.html.tmpl create mode 100644 projects/index.md diff --git a/.gitignore b/.gitignore index 179c23c..0328990 100644 --- a/.gitignore +++ b/.gitignore @@ -51,6 +51,7 @@ /notes/sync/recipes/spaghetti-with-marinara.html /notes/sync/recipes/turkey-chili.html /notes/sync/technologies/freebsd/pf.html +/notes/sync/technologies/index.html /projects/index.html /weblog/a-new-post-script.html /weblog/advent-of-code.html diff --git a/about/index.html.tmpl b/about/index.html.tmpl deleted file mode 100644 index e2a5c1b..0000000 --- a/about/index.html.tmpl +++ /dev/null @@ -1,49 +0,0 @@ - - - - - -About & colophon — tjp.lol - - - - -
- -{{template "header" .}} -
-
-
-

I'm Travis, a software engineer living in Salt Lake City, Utah. I write mostly code, supervise coding AIs, generally spend too long in the terminal, and care about software that's small, legible, and built to last.

-

This site is where I keep my writing. If you want to reach me, t@tjp.lol is the best way.

-
- -
-

elsewhere

- -
- - -
-
- -{{template "footer" .}} diff --git a/about/index.md b/about/index.md new file mode 100644 index 0000000..b7efc71 --- /dev/null +++ b/about/index.md @@ -0,0 +1,28 @@ +--- +title: "About & colophon" +--- + +I'm Travis, a software engineer living in Salt Lake City, Utah. I write mostly code, supervise coding AIs, generally spend too long in the terminal, and care about software that's small, legible, and built to last. + +This site is where I keep my [writing](/weblog/). If you want to reach me, is the best way. + +## elsewhere + +- **email** +- **code** [self-hosted cgit](https://code.tjp.lol/) +- **fedi** [@tjpcc@tilde.zone](https://tilde.zone/@tjpcc) +- **gemini** + +--- + +## colophon + +This site is generated from Markdown and Go templates by [Weft](https://code.tjp.lol/weft.git), with a single [stylesheet](/style.css). + +- **Type:** system UI font for prose, system monospace for headings and code. No web fonts of network requests for type. +- **Color:** light and dark themes via `prefers-color-scheme`. It follows your OS setting in CSS. +- **Weblog:** published from Markdown as static HTML. +- **Notes:** authored in Obsidian and Neovim, synced across my devices by Syncthing, built into static pages by Weft and published [here](/notes/). +- **Build:** Weft recursively renders Markdown and Go templates. AI may assist with coding and batch refactoring, but never with any published post content. +- **Hosting:** static files self-hosted on a VPS. +- **License:** content is [CC BY 4.0](https://creativecommons.org/licences/by/4.0/) unless a page says otherwise. Take it, remix it, just credit me. diff --git a/index.html.tmpl b/index.html.tmpl index 7d2376a..33a01ee 100644 --- a/index.html.tmpl +++ b/index.html.tmpl @@ -19,7 +19,7 @@

My interests are a bit all over the place, but around this site you can also find:

@@ -39,11 +39,12 @@

recently changed notes

- {{- $notes := sortPages (index .Pages "notes") "ModTime"}} + {{- $notes := sortPages (index .Pages "notes/sync") "mod_time"}} {{- with $notes}} {{- end}} diff --git a/notes/index.html.tmpl b/notes/index.html.tmpl deleted file mode 100644 index 66c1f43..0000000 --- a/notes/index.html.tmpl +++ /dev/null @@ -1,39 +0,0 @@ - - - - - -Notes — tjp.lol - - - - -
- -{{template "header" .}} -
-
-

A public slice of the persistent notes I keep synced across my devices.

-
- -
-

start here

- -
- - -
- -{{template "footer" .}} diff --git a/notes/index.md b/notes/index.md new file mode 100644 index 0000000..09e776a --- /dev/null +++ b/notes/index.md @@ -0,0 +1,12 @@ +--- +title: Notes +description: A public cut of my synced notes +--- + +A public slice of the persistent notes I keep synced across my devices. + +## start here + +- [My Recipes](/notes/sync/recipes/) + - [Cocktail Recipes](/notes/sync/recipes/cocktails/) + diff --git a/projects/index.html.tmpl b/projects/index.html.tmpl deleted file mode 100644 index 4e5fa47..0000000 --- a/projects/index.html.tmpl +++ /dev/null @@ -1,49 +0,0 @@ - - - - - -Projects — tjp.lol - - - - -
- -{{template "header" .}} -
-
-

Things I've built. Some I even maintain!

-

Spread across a messy history of code forges.

-
- -
-

current

- -

pantograph

-
    -
  • pantograph - a minimal AI TUI agent in zig with extensions in lua (project page)
  • -
  • libpantograph - the zig agent SDK behind pantograph, with several other language bindings
  • -
  • panto-agent - collection of baseline extensions bringing pantograph up to snuff as a coding agent
  • -
- -

this site

-
    -
  • weft - a small static site generator
  • -
  • tjp.lol - repo tracking the markdown and other sources; builds with weft
  • -
- -

small web protocols

-
    -
  • sliderule - Go tools for building for small web protocols
  • -
  • show-your-work - git repo browser built on sliderule
  • -
  • sr-71 - fast, high flying server for small web protocols
  • -
-
- -
-

archived

-
-
- -{{template "footer" .}} diff --git a/projects/index.md b/projects/index.md new file mode 100644 index 0000000..f0b5b52 --- /dev/null +++ b/projects/index.md @@ -0,0 +1,25 @@ +--- +title: Projects +--- + +Things I've built. Some I even maintain! + +Spread across a messy history of code forges. + +## current + +### pantograph +- [`pantograph`](https://code.tjp.lol/pantograph.git) a minimal AI TUI agent in zig with extensions in lua ([project page](/pantograph/)) +- [`libpantograph`](https://code.tjp.lol/libpantograph.git) the zig agent SDK behind pantograph, with several other language bindings +- [`panto-agent`](https://code.tjp.lol/panto-agent.git) collections of baseline extensions bringing pantograph up to snuff as a coding agent + +### tjp.lol +- [`weft`](https://code.tjp.lol/weft.git) a small static site generator +- [`tjp.lol`](https://code.tjp.lol/tjp_lol.git) repo tracking the markdown and template sources for this site; builds with weft + +### small web protocols +- [`sliderule`](https://code.tjp.lol/sliderule.git) Go tools for building with small web protocols (gemini, gopher, spartan, finger, etc) +- [`show-your-work`](https://code.tjp.lol/syw.git) git repo browser for small web protocols, built on sliderule +- [`sr-71`](https://code.tjp.lol/sr-71.git) fast, high flying server for small web protocols + +## archived diff --git a/site.tmpl b/site.tmpl index 28175b5..ee0a62b 100644 --- a/site.tmpl +++ b/site.tmpl @@ -4,7 +4,7 @@ -{{if eq .OutputPath "about/index.html"}}About & colophon{{else}}{{.Title}}{{end}} — tjp.lol +{{.Title}} — tjp.lol {{with index .Meta "description" -}} {{end -}} @@ -94,6 +94,10 @@ {{template "footer" .}} {{end}} +{{define "notes/index" -}} +{{template "page" .}} +{{end}} + {{define "notes" -}} {{template "head" .}} {{template "header" .}} diff --git a/style.css b/style.css index 25a5357..1ad8c5a 100644 --- a/style.css +++ b/style.css @@ -82,6 +82,11 @@ ul.posts a:hover{color:var(--accent); text-decoration:underline;} .links .k{color:var(--muted); font-size:.8rem; min-width:4.6rem;} .links a{text-decoration:none;} .links a:hover{text-decoration:underline;} +#elsewhere + ul{list-style:none; margin:0; padding:0; font-size:.95rem;} +#elsewhere + ul li{display:flex; gap:.8rem; padding:.24rem 0;} +#elsewhere + ul strong{color:var(--muted); font:400 .8rem var(--mono); min-width:4.6rem;} +#elsewhere + ul a{text-decoration:none;} #elsewhere + ul a:hover{text-decoration:underline;} + /* ---- long-form article ---- */ article.post{font-size:1.08rem; line-height:1.7;} article.post .post-head{margin:0 0 2rem;} -- cgit v1.3