No description
- HTML 44.7%
- Go 32.1%
- CSS 23.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
style.css is served without cache headers, so browsers cached it heuristically for weeks (10% of its age) and kept the old copy after the long-link fix. Pages now link it as style.css?v=<mtime>, which changes whenever the file does. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
| static | ||
| templates | ||
| .gitignore | ||
| config.example.json | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
microblog
A small single-author microblog ("Pauper") in Go. Posts are Markdown files in
content/, with optional attached images in content/files/. The author logs
in with a password to write, edit, pin and delete posts; readers get the post
list, single-post pages, search and an RSS feed. Everything is served under
/r on port 6001.
Running
cp config.example.json config.json # then edit it
go build -o microblog .
./microblog
config.json (not tracked) holds:
password_hash: SHA-256 (hex) of the login password, e.g.printf '%s' 'your password' | sha256sumapi_key_hash: optional SHA-256 (hex) of a separate key forPOST /r/api/post(headerX-API-Key); when empty, the login password is acceptedsession_secret: a long random string that signs login cookies, e.g.openssl rand -hex 32; changing it signs every browser outposts_per_page,blog_url(used in the RSS feed),blog_title,blog_description
Logins are signed cookies that last 400 days and renew while you use them, so
you stay signed in until you log out; restarts don't affect them. Without
session_secret, a random one is made at startup and restarts sign you out.
License
MIT. The fonts in static/fonts keep their own licenses (SIL Open Font License).