Skip to content

feat: shared header/footer partials (layout inject)#10

Merged
mb4umi merged 1 commit intomainfrom
feat/shared-layout-partials
Mar 27, 2026
Merged

feat: shared header/footer partials (layout inject)#10
mb4umi merged 1 commit intomainfrom
feat/shared-layout-partials

Conversation

@mb4umi
Copy link
Copy Markdown
Collaborator

@mb4umi mb4umi commented Mar 27, 2026

Summary

Adds includes/site-header.html and includes/site-footer.html as the single source for nav + footer, with scripts/inject-layout.mjs and npm run build:layout to inline them into the six layout pages.

Docs

  • CONTRIBUTING.md and CLAUDE.md: layout workflow, PR CI, adding pages.
  • README: ci.yml + deploy layout steps.
  • changelog.md (Unreleased).

CI

  • PR (ci.yml): layout drift check + unit tests.
  • Push to main (deploy.yml): layout check before Playwright; deploy reapplies partials before cache-bust.

Contributors editing chrome run npm run build:layout and commit partials + HTML.

Single source for nav and footer in includes/, synced by scripts/inject-layout.mjs
and npm run build:layout.

- Add site-header.html and site-footer.html partials
- Verify layout HTML on PR (ci.yml) and before deploy tests (deploy.yml)
- Apply partials again on deploy before cache-busting
- Document in README, CONTRIBUTING, and CLAUDE; update changelog

Aligns with CONTRIBUTING/CLAUDE: contributors run build:layout when editing
chrome; PR CI stays fast (no Playwright).

Made-with: Cursor
@mb4umi mb4umi merged commit f4526cf into main Mar 27, 2026
1 check passed
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