Reference site SEO: own meta descriptions, fuller demo content; blocksToMarkdown reads section headers

- blocksToMarkdown: the library's section header (heading → ##, then intro; eyebrow
  skipped), intro, quote and bio are content. Pages whose text sat only in a hero
  (archive pages, quote, 404) auto-filled no meta description and fell back to the
  site description; /md and llms-full.txt also missed every section heading.
- legal() template: the placeholder names its page, so unfilled privacy/terms pages
  don't share a description.
- reference: every demo page has its own meta description (pl/en), posts and case
  studies use their excerpt; fuller made-up text on services, contact, quote and
  the archives (all pages >= 150 words); no seeding of allowThemeToggle (its default,
  fillGlobal rewrote it on every run). The two content silences are gone.

ipal-doctor --strict --offline --deep --url: 0/0/0 (4 silenced: 2 permanent,
2 entryList follow-ups of the block-library track). Smoke tests 15/15.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-29 16:38:09 +01:00
co-authored by Claude Opus 5.5
parent dd11bc8146
commit 64ee581098
9 changed files with 172 additions and 37 deletions
+8
View File
@@ -131,6 +131,14 @@ fifteen ready page sections and ten page templates. A new site in one command: `
6. **CookieButton:** it now lifts above the site footer when the footer is in view. A site with its own fixed footer
bar or a button placed by `className`: check it; `avoid={false}` keeps the old fixed position.
### Fixed
- Meta descriptions, `/md` pages and `llms-full.txt` now read the **section header** of blocks
(`header: { heading, intro }` from `buildSectionHeaderField`, every library block) and testimonial `quote`s
(`blocksToMarkdown`). Before, a page whose text sat only in its hero (an archive page, a form page, the 404) got no
auto-filled meta description and fell back to the site description — the same text on several pages, which Google
ignores. **Requires project changes:** none; pages saved before keep their stored description — re-save them (or seed
`meta.description`) to fill an empty one.
## 1.14.6
The release of everything listed under 1.14.5. **1.14.5 was tagged but never published** (its pre-publish test run
-10
View File
@@ -76,11 +76,6 @@ legacy-peer-deps=true
],
"reason": "Approved exception (AGENTS.md → Project decisions): the /design styleguide has its labels in code"
},
"live-seo:duplicate-meta-descriptions-google-ignores-them": {
"off": true,
"until": "2026-11-30",
"reason": "Follow-up for the reference-site track: three pages per language have no own meta description and fall back to the site description; the seed should give each page one"
},
"live-seo:heading-levels-skipped": {
"off": true,
"until": "2026-11-30",
@@ -90,11 +85,6 @@ legacy-peer-deps=true
"off": true,
"until": "2026-11-30",
"reason": "Follow-up for the block-library track: on the archive pages the first image is an entryList card, which is not marked priority"
},
"live-seo:thin-pages-words": {
"off": true,
"until": "2026-11-30",
"reason": "Follow-up for the reference-site track: demo archive and service pages hold fewer than 150 words of made-up content"
}
}
}
+3 -2
View File
@@ -293,8 +293,9 @@ export async function GET(_req: Request, { params }: { params: Promise<{ locale:
How it works under the hood:
- **`blocksToMarkdown(layout)`** — extraction by field-name CONVENTION (heading→`##`,
subheading→`###`, body/content→text/richtext, image→`![]()`, arrays
items/faq/… recursively). Navigation fields (ctaTarget, id, slug) are skipped.
subheading→`###`, body/content/intro/quote/bio/caption→text/richtext, image→`![]()`, arrays
items/faq/… recursively). The section header of every library block (`header: { eyebrow, heading, intro }`,
`buildSectionHeaderField`) leads its block: heading→`##`, then the intro; the eyebrow is left out. Navigation fields (ctaTarget, id, slug) are skipped.
Unusual blocks: `overrides` per blockType.
- **`lexicalToMarkdown(data)`** — a converter for a single richText field (bold, italics,
links, lists, quotes, images). Standalone, no dependency on Payload's MD export