« 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:
-rw-r--r--upd8.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/upd8.js b/upd8.js
index 99626a47..938e20af 100644
--- a/upd8.js
+++ b/upd8.js
@@ -125,8 +125,7 @@ const SITE_ABOUT = fixWS`
     </ul>
 `;
 
-const SITE_CHANGELOG = fixWS`
-`;
+const SITE_CHANGELOG = fs.readFileSync('changelog.html').toString().trim(); // fight me bro
 
 const SITE_FEEDBACK = fixWS`
     <p><strong>Feature requests? Noticed any errors?</strong> Please let me know! I appreciate feedback a lot, and always want to make this site better.</p>
@@ -1884,6 +1883,10 @@ function rebaseURLs(directory, html) {
         return html;
     }
     return html.replace(/(href|src)="(.*?)"/g, (match, attr, url) => {
+        if (url.startsWith('#')) {
+            return `${attr}="${url}"`;
+        }
+
         try {
             new URL(url);
             // no error: it's a full url