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:
@@ -96,20 +96,21 @@ export function post(options?: TemplateOptions): TemplatePage {
|
||||
}
|
||||
|
||||
const LEGAL = {
|
||||
privacyPolicy: { slug: tx('privacy-policy', 'polityka-prywatnosci'), title: tx('Privacy policy', 'Polityka prywatności') },
|
||||
termsOfService: { slug: tx('terms', 'regulamin'), title: tx('Terms of service', 'Regulamin') },
|
||||
privacyPolicy: { slug: tx('privacy-policy', 'polityka-prywatnosci'), text: tx('privacy policy text from the client or their lawyer', 'treść polityki prywatności od klienta lub prawnika'), title: tx('Privacy policy', 'Polityka prywatności') },
|
||||
termsOfService: { slug: tx('terms', 'regulamin'), text: tx('terms of service text from the client or their lawyer', 'treść regulaminu od klienta lub prawnika'), title: tx('Terms of service', 'Regulamin') },
|
||||
}
|
||||
|
||||
/** A legal page (privacy policy, terms): header and text with a table of contents, `noindex`. Structure only — the wording comes from the client. */
|
||||
export function legal(role: keyof typeof LEGAL, options?: TemplateOptions): TemplatePage {
|
||||
const { slug, title } = LEGAL[role]
|
||||
const { slug, text, title } = LEGAL[role]
|
||||
return noindex(buildTemplate(role, { slug, title }, [
|
||||
pageHero(title),
|
||||
{
|
||||
blockType: 'richText',
|
||||
content: sections({
|
||||
en: [['[TO FILL: section heading]', '[TO FILL: text provided by the client or their lawyer]']],
|
||||
pl: [['[TO FILL: nagłówek sekcji]', '[TO FILL: treść od klienta lub prawnika]']],
|
||||
// the placeholder names its page, so an unfilled page still gets its own meta description
|
||||
en: [['[TO FILL: section heading]', `[TO FILL: ${text.en}]`]],
|
||||
pl: [['[TO FILL: nagłówek sekcji]', `[TO FILL: ${text.pl}]`]],
|
||||
}),
|
||||
tableOfContents: { label: tx('Contents', 'Spis treści'), show: true },
|
||||
variant: 'narrow',
|
||||
|
||||
Reference in New Issue
Block a user