installing this blog
how to install, write for, build and deploy this blog
hello future tristan
updated november 2026: the blog now lives inside the triwats.com repo, uses its own newsprint theme, and ships as a cloudflare worker. the old archie + pages notes are gone.
install
brew install hugo node imagemagicknpm installfrom the repo root
hugo builds the blog, node runs the sveltekit site around it, and imagemagick handles photos and social cards.
run it locally
npm run dev:blog- hugo dev server with drafts, for writingnpm run dev- the main site on port 1313
gotcha: the homepage reads the blog feed from the last full build, so after changing posts run npm run build and restart npm run dev to see them there.
new content
use the helper, it’s easier
cd blog && hugo new content content/posts/<my-new-thought>.mdnpm run dev:blogthen read and find all the typos- flip
draft = truetofalsewhen it’s ready
it uses archetypes, which are essentially templates. new posts start as drafts.
photos
drop them in blog/static/images/ as webp, resized and with the exif stripped (phones put gps in there):
magick IN.JPG -auto-orient -resize 1600x1600 -strip -quality 80 blog/static/images/name.webp
camera raws (.DNG) need converting first: sips -s format tiff IN.DNG --out tmp.tiff, then run the line above on the tiff.
then plain markdown on its own line:

standalone images float into the text, alternating right then left. put {.full}, {.left} or {.right} on the next line to override, or {link="https://..."} to make it clickable.
the header photo is the image front-matter field, and imageCaption prints under it. make the caption a one-line takeaway, not a label.
social cards
npm run og builds the share card for every post. deploys don’t regenerate them, so run it after adding or editing a post and commit the cards.
build and deploy
npm run build- builds the blog intostatic/blog/, then the sveltekit sitenpm run deploy- builds and runswrangler deploy
it’s a cloudflare worker now, not pages. secrets go in with wrangler secret put <KEY>.
theme
the theme is blog/themes/newsprint, custom and in the repo, so there’s nothing to clone. archie is still in there as a leftover.
references
- archetypes: https://gohugo.io/content-management/archetypes/
- quick-start: https://gohugo.io/getting-started/quick-start/
- workers static assets: https://developers.cloudflare.com/workers/static-assets/