Block library: item headings follow the section; the leading block's first image is the LCP image

Found by ipal-doctor live-seo on the reference archive pages (entry list under a
page header without a picture): cards jumped h1 → h3, and the first card image
was lazy.

- itemHeadingLevel: items one below the section heading (h3 under h2, h2 under the
  page h1, h2 when the block shows no heading); createBlockRegistry({ itemHeadings })
  fixes a level per block. featureGrid, entryList, pricing, steps, team.
- blockPosition / blockHasImage (root): createPageRoute and the 404 view pass
  firstImage next to isFirst; leadsWithImage marks the first image of the leading
  block eager + fetchPriority high (hero, textMedia, featureGrid, gallery, team,
  entryList); priorityImage: false turns it off.
- reference/ipal-doctor.json: the two live-seo silences removed; reference skills
  and docs/agent/reference-site/INDEX.md refreshed.
- bin/ipal-blocks.mjs executable like the other bins.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 16:38:04 +01:00
co-authored by Claude Opus 5.5
parent dd11bc8146
commit 6f56ef4205
27 changed files with 206 additions and 53 deletions
+5
View File
@@ -80,6 +80,11 @@ fifteen ready page sections and ten page templates. A new site in one command: `
Type `CookieButtonProps`.
### Fixed
- **Block library — headings and the LCP image** (found by `ipal-doctor` live-seo on the archive pages): item headings
follow the section — `h3` under a section heading, `h2` when the block shows none (an entry list under the page header
no longer jumps `h1` → `h3`); override with `createBlockRegistry({ itemHeadings: { entryList: 'h3' } })`. The first
image of the block that leads the page loads eagerly with high priority — `createPageRoute` now passes `firstImage`
("no block before this one shows an image", `blockPosition`) next to `isFirst`; `priorityImage: false` turns it off.
- **Sitemap, llms.txt, the site index (MCP `list_pages`), search (`searchContent`, the search route, MCP
`search_content`):** the page assigned as the 404 page is no longer listed —
it answers 404 at its own address (`unlistedPageIds(settings)`). A 404 page that is also the homepage stays.