« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'upd8.js')
-rw-r--r--upd8.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/upd8.js b/upd8.js
index 938e20af..11c64e5a 100644
--- a/upd8.js
+++ b/upd8.js
@@ -701,7 +701,7 @@ async function writePage(directoryParts, titleOrHead, body) {
     // a C.ROOT_DIRECTORY should work. Um... okay, fine, I'll do that.)
     await writeFile(path.join(directory, 'index.html'), rebaseURLs(directory, fixWS`
         <!DOCTYPE html>
-        <html>
+        <html data-rebase="${path.relative(directory, C.SITE_DIRECTORY)}">
             <head>
                 ${[
                     `<meta charset="utf-8">`,