@apleasantview/eleventy-plugin-baseline 0.1.0-next.42 → 0.1.0-next.43
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.
|
@@ -325,7 +325,11 @@ export function createPageContext({ scope, slugIndex, settings, runtime, options
|
|
|
325
325
|
if (inspectionKey) setEntry(scope, inspectionKey, context);
|
|
326
326
|
|
|
327
327
|
if (slugIndex && entry.slug && page.url) {
|
|
328
|
-
|
|
328
|
+
// Register the default-language slug, and any slug on a monolingual
|
|
329
|
+
// site (where isDefaultLang is undefined). Only a genuine non-default
|
|
330
|
+
// translation (isDefaultLang === false) is skipped — the multilang
|
|
331
|
+
// plugin hops to those via the translation map.
|
|
332
|
+
const eligible = page.isDefaultLang !== false;
|
|
329
333
|
if (eligible) {
|
|
330
334
|
slugIndex.set(entry.slug, page.url, page.inputPath);
|
|
331
335
|
}
|