Skip to content

Migrate main to Hugo source with CI-built deployment - #12

Merged
erikstrauss merged 1 commit into
mainfrom
hugo-source-migration
Jul 11, 2026
Merged

Migrate main to Hugo source with CI-built deployment#12
erikstrauss merged 1 commit into
mainfrom
hugo-source-migration

Conversation

@erikstrauss

Copy link
Copy Markdown
Contributor

Summary

This replaces the committed Hugo build output on main with the actual Hugo source (previously stranded on the full-hugo-build branch), so the site can finally be edited through content/ and data/ files and rebuilt reproducibly by CI.

What changes

  • Source of truth: hugo.toml, content/, data/, layouts/, static/, and the vendored hugo-universal-theme now live on main. Generated output (index.html, 404.html, sitemap.xml, authors/, categories/, tags/, css/, img/, js/, .hugo_build.lock) is removed and gitignored.
  • Fixes a live SEO bug: the deployed build was generated against localhost:1313, so the live sitemap.xml and index.xml contain only localhost URLs and index.html embeds a livereload dev-server script. baseURL is now https://openreviewinitiative.org/.
  • Preserves Fixed cookies integration and proper footer. #11: the Osano cookie-consent script and LF Projects footer (previously hand-edited into the built HTML, and lost on any rebuild) are ported into hugo.toml and a custom_headers.html partial — the consent script now loads on every page, not just the front page.
  • CI builds the site: static.yml (which deployed the raw repo root) is replaced by hugo.yml, which builds with pinned Hugo 0.147.8 and deploys public/ on pushes to main; pull requests get a validation build.
  • Docs: adds README.md (repo layout, how to edit content, local preview) and CONTRIBUTING.md (PR workflow, EasyCLA note).
  • Removes committed node_modules/, screenshot-comparison tooling, .DS_Store files, and the ASWF_ORI_WEB stub folder.

Verification

Built locally with Hugo v0.147.8 (the exact version behind the current deployment). After normalizing the localhost URLs, the generated index.html matches the live site byte-for-byte except the intended fixes above; the full output contains zero localhost references. The OTIOSync feature tile was updated to keep the PRWG wiki link currently in production.

Follow-ups (not in this PR)

  • Add a LICENSE file — needs an ASWF/LF staff decision on license choice for site content.
  • Set the GitHub repo description/homepage.
  • Delete stale branches (full-hugo-build, Static_site_update_20250718, erikstrauss-patch-*, my-fix-branch, jmertic-patch-1) once this merges.

🤖 Generated with Claude Code

Replace the committed Hugo build output with the actual Hugo source so
the site can be edited via content/ and data/ files and rebuilt
reproducibly:

- Remove committed build output (index.html, 404.html, sitemap.xml,
  authors/, categories/, tags/, css/, img/, js/), the .hugo_build.lock,
  and the ASWF_ORI_WEB stub; add .gitignore
- Import the Hugo source: hugo.toml, content/, data/, layouts/,
  static/, and the vendored hugo-universal-theme
- Fix baseURL to https://openreviewinitiative.org/ (the previous
  committed build was generated against localhost:1313, so the live
  sitemap.xml/index.xml pointed at localhost and index.html embedded a
  livereload dev script)
- Port PR #11 (Osano cookie consent + LF Projects footer) from the
  hand-edited HTML into hugo.toml and a custom_headers.html partial so
  it survives rebuilds and applies to every page
- Point the OTIOSync feature tile at the PRWG wiki page to match the
  currently deployed site
- Replace static.yml with hugo.yml: builds with pinned Hugo 0.147.8 in
  CI, deploys public/ to Pages on main, and runs a validation build on
  pull requests
- Add README.md (repo layout, how to edit content, local preview) and
  CONTRIBUTING.md (PR workflow, EasyCLA note)

Verified: local Hugo 0.147.8 build output matches the deployed site
byte-for-byte after normalizing the localhost URLs, with zero remaining
localhost references.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: erikstrauss <erik.strauss@gmail.com>
@erikstrauss
erikstrauss merged commit 294faad into main Jul 11, 2026
4 checks passed
@erikstrauss erikstrauss mentioned this pull request Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant