SEO: project overrides (sitemapEntries, sitemapOptions, underConstructionSeo, searchSettings fn); seo-check follows sitemap index
- createContentHelpers: sitemapEntries transform has the last word, sitemapOptions passes maxUrls/cacheControl/memoSeconds to sitemapRoute, underConstructionSeo: false turns the construction filter off - seo.searchSettings accepts a function over the default fields - ipal-seo-check: reads sitemap index parts, reports 503 sitemap, warns on missing Google/Bing verification (skip key: verification) - docs/seo.md updated Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
94e563055f
commit
dc761164d9
@@ -307,5 +307,14 @@ describe('plugin: Search & AI tab', () => {
|
||||
twoFactor: false,
|
||||
})(base())
|
||||
expect(tabs(off)).not.toContain('Search & AI')
|
||||
const custom = await ipalKit({
|
||||
access: { authCollection: 'users' },
|
||||
i18n: config,
|
||||
seo: { collections: [], searchSettings: (fields) => fields.filter((f) => 'name' in f && f.name !== 'llmsIntro') },
|
||||
twoFactor: false,
|
||||
})(base())
|
||||
const settings = custom.globals?.find((g) => g.slug === 'site-settings')
|
||||
const tab = (settings?.fields[0] as { tabs: { fields: { name?: string }[]; label: string }[] }).tabs.find((t) => t.label === 'Search & AI')
|
||||
expect(tab?.fields.map((f) => f.name)).toEqual(['searchVerification', 'aiCrawlers'])
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user