No description
  • PHP 61.3%
  • Twig 18.7%
  • CSS 13%
  • JavaScript 5.5%
  • Shell 0.8%
  • Other 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-27 16:25:17 -07:00
bin Move templates to Twig 2026-09-10 12:28:59 -07:00
cache Add Docker/PHP scaffold and site skeleton 2026-07-17 23:20:56 -07:00
content Publish Local First today and shift remaining principles posts up one slot 2026-10-16 14:51:57 -07:00
deploy Retry failed deploys and catch missed webhooks 2026-10-23 13:14:31 -07:00
migrations Apply contest schema changes as migrations at container start 2026-09-10 11:43:33 -07:00
public Set the spotlight's text over photo heroes, in a card otherwise 2026-10-23 13:24:32 -07:00
src Set the spotlight's text over photo heroes, in a card otherwise 2026-10-23 13:24:32 -07:00
templates Load Umami session recorder in prod 2026-10-27 16:25:17 -07:00
tests Set the spotlight's text over photo heroes, in a card otherwise 2026-10-23 13:24:32 -07:00
.dockerignore Retry failed deploys and catch missed webhooks 2026-10-23 13:14:31 -07:00
.gitattributes Port Writer's Desk design system to match hammer.ink 2026-07-17 23:55:41 -07:00
.gitignore Retry failed deploys and catch missed webhooks 2026-10-23 13:14:31 -07:00
AGENTS.md Spotlight the newest featured post and keep the list chronological 2026-10-23 13:04:07 -07:00
ARCHITECTURE.md Pin PHP 8.3.36 (CVE-2026-109618, CVE-2026-109619) and pull base image on deploy 2026-10-21 16:05:01 -07:00
CLAUDE.md Add AGENTS.md contributor guide 2026-07-22 01:15:17 -07:00
composer.json Move templates to Twig 2026-09-10 12:28:59 -07:00
composer.lock Move templates to Twig 2026-09-10 12:28:59 -07:00
docker-compose.prod.yml Add share links for unpublished posts 2026-10-15 23:23:07 -07:00
docker-compose.yml Add Gmail SMTP mailer 2026-09-10 12:15:58 -07:00
Dockerfile Pin PHP 8.3.36 (CVE-2026-109618, CVE-2026-109619) and pull base image on deploy 2026-10-21 16:05:01 -07:00
phpunit.xml.dist Move templates to Twig 2026-09-10 12:28:59 -07:00
README.md Move templates to Twig 2026-09-10 12:28:59 -07:00

Hammer Blog

The hammer.ink blog. PHP + HTMX, markdown page bundles, served at hammer.ink/blog. See ARCHITECTURE.md for the full design.

Run it locally

The only thing you need on your machine is Docker. No PHP, no Composer.

docker compose up --build

Then open http://localhost:8090.

Edits to content/, templates/, src/, and public/ are live-mounted — refresh the browser, no rebuild. Changing composer.json or the Dockerfile needs a rebuild (docker compose up --build).

Publishing

Publishing is a git push, never an SSH file-paste onto a live box. Write a post as content/<category>/<slug>/index.md, preview locally, commit, push.

Layout

public/       front controller + static assets
src/          PHP classes (PSR-4: HammerBlog\)
templates/    Twig templates + partials
content/      markdown page bundles (category = top-level dir)
cache/        rendered-HTML cache (gitignored)

Status

  • Phase 1 — skeleton (done): boots under docker compose up, serves a landing page.
  • Phase 2 — content pipeline (done): frontmatter + markdown render + content-hash cache.
  • Phase 3 — category / tag pages (done): hub pages, tag archives, post cards, category icons.
  • Phase 4 — SEO layer (done): canonical + OG/Twitter + JSON-LD, sitemap.xml, RSS feed.xml, env-aware robots.txt.
  • Phase 5 — styling pass (Writer's Desk).
  • Phase 6 — HTMX niceties (done): URL-backed load-more pagination (no-JS falls back to real ?page=N pages).
  • Phase 7 — prod (kit ready): docker-compose.prod.yml, nginx front-door config, and a two-speed deploy script live under deploy/ — see deploy/DEPLOY.md.