Home

Add About page, configurable Home link, RSS footer, MIT license

Release #002

Branch feature/header-about-config · merged 2026-10-24 · version 0.2.0

What changed

  • Header: the host name is replaced by a Home link to the index, and the RSS link is replaced by About.
  • Configurable Home text: set "homeText" in content/site.json. With no file, no setting or a blank value, it shows "Home". The file is reloaded when it changes, so editing it needs a redeploy but not a rebuild or restart.
  • About page (/about): a box at the top with the version (0.2.0 plus the short git commit), the total post count and a link to the latest post. Below it is the guide to writing posts, taken from the hello-world post (about.md, built into the binary).
  • Footer: a new footer with the RSS link at the bottom right, on every page.
  • License: MIT in LICENSE, linked from the README. The README also documents site.json, /about and how versioning works.

Notes

  • site.json lives in content/, so deploy-go posts --content ships it with no script change. It is never treated as a post.
  • If site.json has invalid JSON or a misspelled setting name, the error is logged and the last good settings stay in use.

Testing

  • All tests pass with the race detector (go test -race ./...).
  • New tests cover each site.json case (missing, set, left out, blank, broken JSON, unknown setting, deleted), the header and footer on every page type, the About page with and without posts, and site.json not being listed as a post.
  • Built and ran locally, then checked the header, footer and About page in the HTML.

Screenshots

Taken afterwards from a build of the branch's final commit (ac317db).

Desktop Mobile
Desktop Mobile

🤖 Generated with Claude Code