Fancy Curl Sites
Web page · https://nytpu.com/gemlog/2026-03-18
First seen by Oriel on .
AI summary
The author explains how they serve ANSI-formatted versions of their entire blog to curl clients using Gemroff, a custom static-site generator, and Nginx.
- The index and about pages were written by hand, while blog pages are generated from Gemroff’s existing ANSI-marked plaintext output.
- A post wrapper, an index template, and a few static-site-generator changes enabled curl versions across the blog.
- Nginx serves the static output to user agents containing curl, with an X-Original: true header allowing an unmodified HTTP response.
- The approach was convenient because the author’s custom tooling already supported multiple output formats; a few manually formatted pages are also presented as a simpler option.
#curl #ansi escape codes #static site generators #nginx
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | zitobg | https://nytpu.com/gemlog/2026-03-18 Read discussion |