« get me outta code hell

fix random links bug caused by <base> changes - 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:
authorFlorrie <towerofnix@gmail.com>2020-06-29 15:35:29 -0300
committerFlorrie <towerofnix@gmail.com>2020-06-29 15:35:29 -0300
commit3e3cf5867ab1e6afff432a1daabf999d2eac246e (patch)
tree8e966485952dea58b8bcb94a0c887053e8a8a882 /upd8.js
parent4afad0df6aa435a50b4323604b16603ec43c7c50 (diff)
fix random links bug caused by <base> changes
this also adds a new track "Friendship Aneurysm" to Squiddles :P
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 938e20a..11c64e5 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">`,