Skip to content

fix: ensure a single h1 per page#442

Merged
vvlladd28 merged 1 commit into
mainfrom
fix/duplicate-h1-headings
Jun 1, 2026
Merged

fix: ensure a single h1 per page#442
vvlladd28 merged 1 commit into
mainfrom
fix/duplicate-h1-headings

Conversation

@vvlladd28
Copy link
Copy Markdown
Member

Summary

Fixes pages that rendered multiple <h1> elements (a11y / SEO issue). Each affected page now has exactly one <h1>.

Changes

  • Device Library detail (DeviceInfoCard.astro): card title <h1><p> — Starlight already renders the page <h1>. Look unchanged (styled via .dl-info-card__title).
  • Careers (JobsSection.astro): page had no <h1>; hero title <h2><h1>, selector extended so the look is identical.
  • Installations (ProductSection.astro, installations/index.astro): all product tabs are in the DOM (inactive ones display:none), each emitting an <h1>. Only the default ThingsBoard Cloud tab keeps <h1>; other product titles → <h2> (styled to match).
  • Asset Management (asset-management/index.astro): three section headings <h1><h2> (natural h2 size).
  • CE vs PE diff (ce-vs-pe-diff/index.astro): site-name/logo <h1><div> (styled via .site-name).
  • Blog: two posts had a stray body-level # heading on top of the template title — tbmq-1-3-0… ###; how-an-iot-based-liquid-tank… removed the duplicated title line.

- device-library detail: card title h1 -> p (Starlight renders page h1)
- careers: hero title h2 -> h1 (page had no h1)
- installations: only ThingsBoard Cloud tab keeps h1, other product tabs -> h2
- asset-management: section headings h1 -> h2
- ce-vs-pe-diff: site-name logo h1 -> div
- blog: demote/remove stray body-level h1 in two posts
@vvlladd28 vvlladd28 merged commit b84704d into main Jun 1, 2026
4 checks passed
@vvlladd28 vvlladd28 deleted the fix/duplicate-h1-headings branch June 1, 2026 14:52
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