@justanarthur/payload-www 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pages.js +2 -3
- package/dist/render-pages.js +2 -3
- package/dist/sitemap.js +2 -3
- package/package.json +1 -1
package/dist/pages.js
CHANGED
|
@@ -330,11 +330,10 @@ function buildLocalizedPath(locale, prefix, slug, { routing }) {
|
|
|
330
330
|
})()}${prefix ? "/" + prefix : ""}${path ? "/" + path : ""}`;
|
|
331
331
|
}
|
|
332
332
|
function buildLocalizedPaths(localesSlug, pagePathPrefix, { routing }) {
|
|
333
|
-
|
|
334
|
-
return {};
|
|
333
|
+
const blankIsHome = !localesSlug[routing.defaultLocale];
|
|
335
334
|
return routing.locales.reduce((paths, locale) => {
|
|
336
335
|
const slug = localesSlug[locale];
|
|
337
|
-
if (!slug)
|
|
336
|
+
if (!slug && !blankIsHome)
|
|
338
337
|
return paths;
|
|
339
338
|
paths[locale] = buildLocalizedPath(locale, pagePathPrefix, slug, { routing });
|
|
340
339
|
return paths;
|
package/dist/render-pages.js
CHANGED
|
@@ -360,11 +360,10 @@ function buildLocalizedPath(locale, prefix, slug, { routing }) {
|
|
|
360
360
|
})()}${prefix ? "/" + prefix : ""}${path ? "/" + path : ""}`;
|
|
361
361
|
}
|
|
362
362
|
function buildLocalizedPaths(localesSlug, pagePathPrefix, { routing }) {
|
|
363
|
-
|
|
364
|
-
return {};
|
|
363
|
+
const blankIsHome = !localesSlug[routing.defaultLocale];
|
|
365
364
|
return routing.locales.reduce((paths, locale) => {
|
|
366
365
|
const slug = localesSlug[locale];
|
|
367
|
-
if (!slug)
|
|
366
|
+
if (!slug && !blankIsHome)
|
|
368
367
|
return paths;
|
|
369
368
|
paths[locale] = buildLocalizedPath(locale, pagePathPrefix, slug, { routing });
|
|
370
369
|
return paths;
|
package/dist/sitemap.js
CHANGED
|
@@ -153,11 +153,10 @@ function buildLocalizedPath(locale, prefix, slug, { routing }) {
|
|
|
153
153
|
})()}${prefix ? "/" + prefix : ""}${path ? "/" + path : ""}`;
|
|
154
154
|
}
|
|
155
155
|
function buildLocalizedPaths(localesSlug, pagePathPrefix, { routing }) {
|
|
156
|
-
|
|
157
|
-
return {};
|
|
156
|
+
const blankIsHome = !localesSlug[routing.defaultLocale];
|
|
158
157
|
return routing.locales.reduce((paths, locale) => {
|
|
159
158
|
const slug = localesSlug[locale];
|
|
160
|
-
if (!slug)
|
|
159
|
+
if (!slug && !blankIsHome)
|
|
161
160
|
return paths;
|
|
162
161
|
paths[locale] = buildLocalizedPath(locale, pagePathPrefix, slug, { routing });
|
|
163
162
|
return paths;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justanarthur/payload-www",
|
|
3
3
|
"description": "Reusable Payload CMS website template — config builder, collections, globals, blocks, fields, access, hooks, metadata (JSON-LD, hreflang), page renderers, and test helpers.",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"files": [
|