Artifact 824fe0a0ea48410daf5e48cc4bf7518ee5bc0a39ff212e1f291ab7518c13fccb:
- File
docs/site/layouts/index.html
— part of check-in
[ab1e500bc4]
at
2026-04-26 15:20:11
on branch trunk
— feat(landing): inject version from latest git tag at build time (#13)
Replace the three hardcoded "0.4.2" strings in the landing layout with {{ .Site.Params.version }} template directives. Add scripts/sync-version.sh that reads the latest git tag via 'git describe --tags --abbrev=0' and rewrites hugo.yaml's params.version line. Wire it into wrangler.jsonc's build command so Cloudflare's git-integrated build picks up new tags automatically — push a commit to main with a fresh tag, CF rebuilds, the landing shows the new version with no PR required to bump strings.
Footer year switched to {{ now.Year }} so 2027 doesn't surprise anyone.
Local fallback: when no tags are reachable (very early dev), the script exits cleanly and the layout's 'default' filter falls back to the value already in hugo.yaml. (user: [email protected], size: 22440) [annotate] [blame] [check-ins using]