This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is the Overlay Fact Sheet (https://overlayfactsheet.com/), a static multilingual Hugo site that provides factual information about web accessibility overlays. The site is a community-driven, non-biased educational resource signed by accessibility professionals.
- Uses Hugo v0.93.3 (specified in netlify.toml)
- Single-page application with all content on the homepage
- No Hugo installation required locally (builds via Netlify)
The site supports multiple languages (English, French, Portuguese Brazilian, Japanese, Indonesian, German, Dutch) using Hugo's i18n system:
- Translation files:
i18n/{language-code}.yml- Each file contains key-value pairs for all translatable content - Language configuration:
config.toml- Defines all available languages with their weights, names, and content directories - Template:
layouts/index.html- Single template that uses{{ T "key" }}to pull translated strings - Fallback: Missing translation keys automatically fall back to English
Unlike typical Hugo sites, this project has no markdown content files. All text content lives in the i18n/*.yml files as translation strings. The layouts/index.html template structures the page and pulls in translated content via Hugo's T function.
config.toml- Hugo configuration and language definitionsi18n/- Translation files (one per language)layouts/index.html- Main HTML templatestatic/- CSS, images, faviconnetlify.toml- Deployment configuration
hugo --gc --minifyhugo serverThis starts a development server with live reload. The site will be available at http://localhost:1313/
hugo server --buildFuturemain- Production branch (auto-deploys to overlayfactsheet.com)develop- Staging branch (deploys to preview URL)- Feature branches - Created from
develop, PRs targetdevelop
The workflow is: feature branch → develop → verify on preview → PR to main → production deploy
- Edit the appropriate
i18n/{language-code}.ymlfile - Find the translation key (e.g.,
topic01p01) - Update the
translation:value
python3 .github/scripts/translation_status.py # one line per language
python3 .github/scripts/translation_status.py --format markdown # paste into an issueReports, per language, the keys missing from it, the entries still identical to
the English, and any key that no longer exists in en.yml. Missing keys are not
an error — Hugo falls back to English — so the script exits 0 for them. With
--check (how CI runs it) it exits 1 only on a key that renders nowhere: one
absent from en.yml, or a duplicate id.
Use the markdown report when telling translators what changed (#1434), so each person sees the exact keys to update rather than re-reading the page. It compares keys only: rewording the English under an existing key leaves every translation of it counted as translated, so list those keys by hand.
- Add language configuration to
config.tomlunder[languages]:[languages.{code}] contentDir = 'i18n/{code}' weight = {number} [languages.{code}.params] languageName = '{full name}' languageNameShort = '{code}' languageCode = '{code}'
- Create
i18n/{code}.ymlwith all translation keys fromi18n/en.yml - Translate each value
Endorsements are in layouts/index.html as an ordered list (<ol>) after the "Signed by" heading. Add new <li> entries in the format: Name, Title, Organization or Name, self. Do not add links.
- Hosted on Netlify
- Production:
mainbranch → https://overlayfactsheet.com/ - Preview:
developbranch and PRs get unique preview URLs - Build command:
hugo --gc --minify - Publish directory:
public - Releases:
.github/workflows/release.ymltags each content change pushed tomain(vYYYY.MM.DD) and creates a GitHub release whose notes are the changelog, generated by.github/scripts/release_notes.py. Signature-only changes don't release; they roll into the next release's notes. The changelog is not added to the website.
- No package.json: This is a pure Hugo site with no Node.js dependencies
- Content is fact-based: Avoid hyperbole, exaggeration, and logical fallacies
- No SEO links: Endorsements must not include links
- HTML in translations: Translation strings can contain HTML (rendered with
| safeHTMLin templates) - No subdirectories: All content is on a single page, no blog posts or separate pages
MANDATORY: This project uses Git Flow branching strategy. All development must follow these rules:
- main - Production-ready code only. Protected branch.
- develop - Integration branch for features. All feature branches merge here first.
- feature/ - New features (branch from develop, merge to develop)
- release/ - Release preparation (branch from develop, merge to main and develop)
- hotfix/ - Emergency production fixes (branch from main, merge to main and develop)
- Never commit directly to main or develop
- All work starts from develop branch
- Create feature branches for new work:
git checkout -b feature/description - Create PRs to merge features into develop
- Release branches prepare code for production
- Hotfixes are the only branches created from main
- Always delete feature branches after merging
Whenever I ask to review a PR (pull request), use the pr-review skill.