Skip to content

feat(tools): collapse SEO intros behind <details> disclosure#25

Merged
Bissbert merged 1 commit into
mainfrom
feat/tools-collapsible-intros
May 11, 2026
Merged

feat(tools): collapse SEO intros behind <details> disclosure#25
Bissbert merged 1 commit into
mainfrom
feat/tools-collapsible-intros

Conversation

@Bissbert

Copy link
Copy Markdown
Contributor

Summary

  • Multi-paragraph SEO prose on all seven tool pages is wrapped in a native HTML <details> element, closed by default, so users arrive directly at the tool widget rather than scrolling past a wall of text.
  • The full prose remains in the initial HTML response, fully indexable by search crawlers — <details> content is not hidden from Google.
  • The <h1> heading and single lead sentence above each <details> stay permanently visible for context.

Files changed

  • src/pages/tools/index.astro
  • src/pages/tools/measurement.astro
  • src/pages/tools/optical.astro
  • src/pages/tools/lab.astro
  • src/pages/tools/identification.astro
  • src/pages/tools/advanced.astro
  • src/pages/tools/conversions.astro

Verification

  • npm run build passes (912 pages built).
  • Each built page contains <details> and a class="prose" wrapper in the output HTML.
  • Word counts in built HTML: measurement 1678, optical 1278, lab 1619, identification 1016, advanced 1412, conversions 720, hub 588 — all well above 300.
  • JSON-LD SoftwareApplication blocks are untouched.

The multi-paragraph prose on all seven tool pages is preserved in the DOM
for search indexing but wrapped in a closed <details> element so users
land directly on the tool widget. The <h1> and single lead sentence remain
always visible. JSON-LD SoftwareApplication blocks and word counts are
unchanged.
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed to: https://88b28cbf.gemmology-dev.pages.dev

@Bissbert Bissbert merged commit b2523ba into main May 11, 2026
3 of 4 checks passed
Bissbert added a commit that referenced this pull request May 11, 2026
The static <nav aria-label="Tool categories"> was duplicating the six
category links already rendered by the ToolsHub client:load island.
The collapsible SEO prose block added in PR #25 made the duplication
visible; the plain nav has been removed so only ToolsHub remains.
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