« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/content/dependencies/generatePageLayout.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/content/dependencies/generatePageLayout.js b/src/content/dependencies/generatePageLayout.js
index fe2bef99..0a26dfd9 100644
--- a/src/content/dependencies/generatePageLayout.js
+++ b/src/content/dependencies/generatePageLayout.js
@@ -55,6 +55,7 @@ export default {
     'cachebust',
     'html',
     'language',
+    'pagePath',
     'to',
     'wikiData',
   ],
@@ -205,6 +206,7 @@ export default {
     cachebust,
     html,
     language,
+    pagePath,
     to,
   }) {
     let titleHTML = null;
@@ -460,11 +462,11 @@ export default {
           lang: language.intlCode,
           'data-language-code': language.code,
 
-          /*
           'data-url-key': 'localized.' + pagePath[0],
           ...Object.fromEntries(
-            pagePath.slice(1).map((v, i) => [['data-url-value' + i], v])),
-          */
+            pagePath
+              .slice(1)
+              .map((v, i) => [['data-url-value' + i], v])),
 
           'data-rebase-localized': to('localized.root'),
           'data-rebase-shared': to('shared.root'),