feat(resume): serve each locale its own HTML head and a sitemap #113

Merged
cjournois merged 1 commit from feat/improve-locale-head into main 2026-11-04 12:16:19 +00:00
Collaborator

A link preview that reads raw HTML (LinkedIn, an application letter) showed the generic English title with no image, even for /fr, and the site had no sitemap. Proposal 2026-11-04-1.

  • /en and /fr each serve their own head: lang, title, description, canonical, hreflang (en, fr, x-default), og:locale and a 1200x627 og:image; the client SEO code builds the same values from one helper.

  • sitemap.xml and the robots.txt Sitemap line now ship, since the Containerfile defaults VITE_SITE_URL to https://cjournois.com; the entrypoint injection and gettext are gone.

  • nginx tries $uri/index.html before $uri/, so /fr returns 200 instead of a 301 to /fr/.

  • /fr: 200, no Location, lang="fr", French description, canonical https://cjournois.com/fr, hreflang en/fr/x-default, og:locale fr_FR

  • /en: lang="en", canonical https://cjournois.com/en

  • og:image https://cjournois.com/assets/og-image.png serves image/png, 1200x627

  • /sitemap.xml lists /en and /fr; robots.txt has the Sitemap line

  • fr personalWebsiteUrl is https://cjournois.com/fr

  • entrypoint.sh, seo-inject.template, RT_SEO_INJECT gone; just lint test and e2e smoke (8/8) pass

Verified: curl against the built image on localhost:8080; the build needed janus's CA for apk locally, as main does.

Session: a446d0ea-75f1-4a61-b4e6-c7c544e458c3

A link preview that reads raw HTML (LinkedIn, an application letter) showed the generic English title with no image, even for /fr, and the site had no sitemap. Proposal 2026-11-04-1. - /en and /fr each serve their own head: lang, title, description, canonical, hreflang (en, fr, x-default), og:locale and a 1200x627 og:image; the client SEO code builds the same values from one helper. - sitemap.xml and the robots.txt Sitemap line now ship, since the Containerfile defaults VITE_SITE_URL to https://cjournois.com; the entrypoint injection and gettext are gone. - nginx tries `$uri/index.html` before `$uri/`, so /fr returns 200 instead of a 301 to /fr/. - [x] /fr: 200, no Location, lang="fr", French description, canonical https://cjournois.com/fr, hreflang en/fr/x-default, og:locale fr_FR - [x] /en: lang="en", canonical https://cjournois.com/en - [x] og:image https://cjournois.com/assets/og-image.png serves image/png, 1200x627 - [x] /sitemap.xml lists /en and /fr; robots.txt has the Sitemap line - [x] fr personalWebsiteUrl is https://cjournois.com/fr - [x] entrypoint.sh, seo-inject.template, RT_SEO_INJECT gone; `just lint test` and e2e smoke (8/8) pass Verified: curl against the built image on localhost:8080; the build needed janus's CA for apk locally, as main does. Session: a446d0ea-75f1-4a61-b4e6-c7c544e458c3
feat(resume): serve each locale its own HTML head and a sitemap
All checks were successful
ci: resume / CI (pull_request) Successful in 1m10s
ci: resume / E2E (full stack) (pull_request) Has been skipped
ci: resume / Image (pull_request) Successful in 37s
ci: resume / Publish & release (pull_request) Has been skipped
ci: resume / CI Pipeline (pull_request) Successful in 0s
ci: resume-helm / E2E (full stack) (pull_request) Successful in 2m9s
ci: resume-helm / CI Pipeline (pull_request) Successful in 0s
ci: resume-root / CI (pull_request) Successful in 3m13s
ci: resume-root / E2E (full stack) (pull_request) Has been skipped
ci: resume-root / Image (pull_request) Has been skipped
ci: resume-root / Publish & release (pull_request) Has been skipped
ci: resume-root / CI Pipeline (pull_request) Successful in 0s
ci: resume / Plan (push) Successful in 5s
ci: resume-helm / Plan (push) Successful in 5s
ci: resume-root / Plan (push) Successful in 5s
ci: resume-helm / CI (push) Successful in 26s
ci: resume-helm / Image (push) Has been skipped
ci: resume-helm / Publish & release (push) Has been skipped
ci: resume / CI (push) Successful in 1m1s
ci: resume / E2E (full stack) (push) Has been skipped
ci: resume / Image (push) Has been skipped
ci: resume / Publish & release (push) Has been skipped
ci: resume / CI Pipeline (push) Successful in 0s
ci: resume-helm / E2E (full stack) (push) Successful in 1m22s
ci: resume-helm / CI Pipeline (push) Successful in 0s
ci: resume-root / CI (push) Successful in 2m3s
ci: resume-root / E2E (full stack) (push) Has been skipped
ci: resume-root / Image (push) Has been skipped
ci: resume-root / Publish & release (push) Has been skipped
ci: resume-root / CI Pipeline (push) Successful in 0s
11cbee0de5
The build bakes https://cjournois.com and writes dist/<locale>/index.html with
lang, title, description, canonical, hreflang and og tags, from the helper the
client SEO also uses. Adds a 1200x627 og:image, serves /fr without a 301, fixes
the French personalWebsiteUrl, and drops the runtime SEO entrypoint injection.

Session: a446d0ea-75f1-4a61-b4e6-c7c544e458c3
cjournois changed title from WIP: feat(resume): serve each locale its own HTML head and a sitemap to feat(resume): serve each locale its own HTML head and a sitemap 2026-11-04 12:16:17 +00:00
cjournois deleted branch feat/improve-locale-head 2026-11-04 12:16:20 +00:00
Sign in to join this conversation.
No reviewers
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cjournois/resume!113
No description provided.