diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/upd8.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/upd8.js b/src/upd8.js index 4d51d7f7..ba59068f 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'), |