aboutsummaryrefslogtreecommitdiff

website

It's my website's source code. Yay.

And yes, you can find the answer key to my site puzzle here, but then where's the fun in solving it?

Build

Run hugo to build to public, or run hugo server -M to start a web server that rebuilds the site automatically after changes.

Deploy

Create a worktree for this repo and symlink static/src/post-receive to the Git hooks directory. Soft dependency on Btrfs in 2025? It's sooner than you think!

Run git push -o skip to skip the build and deployment after a push.

See [/nixos-config](my NixOS configs) for my Caddy web server setup.

Logs

Install GoAccess and run journalctl -eu caddy --output cat --lines all -g http.log.access | goaccess --log-format caddy. Change all to some smaller number to only analyze the most recent logs. You might have to wait a while since the XVM disk is super slow.

To visualize the logs with Logstalgia, convert the logs from the Caddy format to NCSA using this script but you may have to adjust the output to make Logstalgia accept it. Then run SDL_VIDEODRIVER=wayland logstalgia -s 10 on the NCSA file.

Graph view

To visualize my posts as a graph (like in Quartz or Obsidian), use site-graph with this patch. Then run python site_graph.py --show-buttons https://unnamed.website/posts (if you use the base URL it also includes tags and blows up the graph size) and open site.html. You might need to tweak some settings like the gravitational constant to reduce bounciness.