Skip to content

chassis: canonical/Open Graph/twitter metadata + head slot in BaseLayout#463

Merged
ChBrain merged 1 commit into
mainfrom
chassis/base-head-metadata
Jul 4, 2026
Merged

chassis: canonical/Open Graph/twitter metadata + head slot in BaseLayout#463
ChBrain merged 1 commit into
mainfrom
chassis/base-head-metadata

Conversation

@ChBrain

@ChBrain ChBrain commented Jul 4, 2026

Copy link
Copy Markdown
Owner

The site emitted no Open Graph, twitter, or canonical metadata anywhere, and pages had no way to add head tags. BaseLayout now:

  • always emits og:title, og:description, og:type=website, og:site_name=kaihacks, and twitter:card (summary, or summary_large_image when ogImage is passed)
  • accepts optional canonical (emits link rel=canonical + og:url) and ogImage props
  • exposes <slot name="head" /> for page-specific metadata

Canonical is opt-in, not auto-derived: the bare apex page builds with surface root, which has no production base in URLS, so auto-derivation would emit a wrong canonical for a real page. Per-surface adoption (passing canonical from pages via URLS) is follow-up surface work.

Verification: build + unit group + site a11y group green.

🤖 Generated with Claude Code

https://claude.ai/code/session_0176ZYTwoV8V4So9SBTizc5X


Generated by Claude Code

@ChBrain
ChBrain force-pushed the chassis/base-head-metadata branch from 5461a1a to c59f7a5 Compare July 4, 2026 17:52
@ChBrain
ChBrain merged commit c757e95 into main Jul 4, 2026
36 checks passed
@ChBrain
ChBrain deleted the chassis/base-head-metadata branch July 4, 2026 18:44
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.

2 participants