Merge claude/reference-seo-content: own meta descriptions, fuller demo content
Reference site: every page has its own meta description, demo archive and service pages have real-length content; blocksToMarkdown reads section headers. Conflicts resolved: reference/ipal-doctor.json — both branches removed their own two live-seo silences, so the merged file keeps only the two permanent rules (audit:collections-present, i18n-literals); docs/agent/reference-site/INDEX.md regenerated with pnpm reference:index.
This commit is contained in:
@@ -137,6 +137,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
|
||||
|
||||
@@ -25,6 +25,8 @@ Rules: AGENT.md §13, §0a.
|
||||
| `README.md` | how to run the reference site and what is where |
|
||||
| `docs/DEPLOY.md` | the Coolify runbook: local check, app settings, MongoDB resource, env, targeted seeds, DNS, rollback |
|
||||
| `ipal-doctor.json` | the production domain and launch state for ipal-doctor (below) |
|
||||
| `ipal-doctor.json` | the production domain and launch state for ipal-doctor (below) |
|
||||
| `ipal-doctor.json` | the production domain and launch state for ipal-doctor (below) |
|
||||
| `next.config.ts` | security headers, enforced CSP, admin CSP, upload headers, images, no X-Powered-By |
|
||||
| `package.json` | scripts (build, start, seed, tokens, generate), pinned Payload versions and overrides |
|
||||
| `playwright.config.ts` | smoke tests against the built, seeded site (below) |
|
||||
@@ -75,16 +77,50 @@ legacy-peer-deps=true
|
||||
"src/components/design/**"
|
||||
],
|
||||
"reason": "Approved exception (AGENTS.md → Project decisions): the /design styleguide has its labels in code"
|
||||
},
|
||||
"live-seo:duplicate-meta-descriptions-google-ignores-them": {
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### `ipal-doctor.json`
|
||||
|
||||
```json
|
||||
{
|
||||
"domain": "example-studio.pl",
|
||||
"launched": false,
|
||||
"rules": {
|
||||
"audit:collections-present": {
|
||||
"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"
|
||||
"reason": "Project decisions: posts and caseStudies with archive pages; entryFields.ts is their shared field helper, not a collection"
|
||||
},
|
||||
"live-seo:thin-pages-words": {
|
||||
"i18n-literals": {
|
||||
"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"
|
||||
"files": [
|
||||
"src/components/design/**"
|
||||
],
|
||||
"reason": "Approved exception (AGENTS.md → Project decisions): the /design styleguide has its labels in code"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### `ipal-doctor.json`
|
||||
|
||||
```json
|
||||
{
|
||||
"domain": "example-studio.pl",
|
||||
"launched": false,
|
||||
"rules": {
|
||||
"audit:collections-present": {
|
||||
"off": true,
|
||||
"reason": "Project decisions: posts and caseStudies with archive pages; entryFields.ts is their shared field helper, not a collection"
|
||||
},
|
||||
"i18n-literals": {
|
||||
"off": true,
|
||||
"files": [
|
||||
"src/components/design/**"
|
||||
],
|
||||
"reason": "Approved exception (AGENTS.md → Project decisions): the /design styleguide has its labels in code"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+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