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:
co-authored by
Claude Opus 5.5
parent
dd11bc8146
commit
64ee581098
+3
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user