« 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:
-rwxr-xr-xsrc/upd8.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 4d51d7f..ba59068 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -1082,7 +1082,10 @@ writePage.html = (pageInfo, {
     return filterEmptyLines(fixWS`
         <!DOCTYPE html>
         <html ${html.attributes({
-            lang: language.code,
+            lang: language.intlCode,
+            'data-language-code': language.code,
+            'data-url-key': paths.toPath[0],
+            ...Object.fromEntries(paths.toPath.slice(1).map((v, i) => [['data-url-value' + i], v])),
             'data-rebase-localized': to('localized.root'),
             'data-rebase-shared': to('shared.root'),
             'data-rebase-media': to('media.root'),