« get me outta code hell

complete the changelog - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2020-06-12 16:33:31 -0300
committerFlorrie <towerofnix@gmail.com>2020-06-12 16:33:31 -0300
commit4afad0df6aa435a50b4323604b16603ec43c7c50 (patch)
treeb379f38839a3065ca79fc7a4e7e107e58d9c42b7
parent5d8dd6c618bef3b1a33a2eda130e155ba50ca952 (diff)
complete the changelog
-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