Sitemap.xml fixed

This commit is contained in:
2026-10-14 11:32:03 +02:00
parent fad5d778e8
commit f4d969ad29
9 changed files with 14 additions and 52 deletions
+3 -8
View File
@@ -33,14 +33,9 @@ type CreateContentHelpersArgs = {
settingsSlug?: string;
/**
* Browser look of `sitemapRoute` (/sitemap.xml). Default: built-in style,
* header = Site Settings `siteName` (default locale), credit "Technology by
* Intecion.com". `false` = raw XML. `{ credit: false }` hides the credit line.
* header "XML Sitemap", credit "Technology by Intecion.com". `false` = raw XML.
*/
sitemapStyle?: {
title?: string;
} & Omit<SitemapStyleOptions, 'title'> | false;
/** Site Settings field with the site name (sitemap header). Default 'siteName'. */
siteNameField?: string;
sitemapStyle?: false | SitemapStyleOptions;
};
/**
* Bundles the per-request data helpers a frontend needs — the same cached
@@ -68,7 +63,7 @@ type CreateContentHelpersArgs = {
* a URL is, fetching gets the listing. Metadata generation needs the first and
* not the second, and a page component composes them in two obvious lines.
*/
export declare function createContentHelpers({ baseUrl, config, content, i18n, pagesSlug, robots: robotsOptions, settingsSlug, sitemapStyle, siteNameField, }: CreateContentHelpersArgs): {
export declare function createContentHelpers({ baseUrl, config, content, i18n, pagesSlug, robots: robotsOptions, settingsSlug, sitemapStyle, }: CreateContentHelpersArgs): {
generatePageMetadata: (locale: string, segments: string[] | undefined, page?: number) => Promise<PageMetadata>;
generateStaticParams: () => Promise<Array<{
locale: string;