diff options
Diffstat (limited to 'src/content/dependencies')
-rw-r--r-- | src/content/dependencies/generatePageLayout.js | 8 |
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'), |