« get me outta code hell

fix a collapsing sidebar issue - 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:
author(quasar) nebula <towerofnix@gmail.com>2020-10-29 12:20:02 -0300
committer(quasar) nebula <towerofnix@gmail.com>2020-10-29 12:20:02 -0300
commit8419ad1e5431184f309a0f1ee4547f20fb1813c1 (patch)
treeea5d662631847b793f35a668efd1e960ccf6518c /upd8.js
parent4c03731a140d5d8a68ae330a2884f210acae511c (diff)
fix a collapsing sidebar issue
Diffstat (limited to 'upd8.js')
-rw-r--r--upd8.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/upd8.js b/upd8.js
index 1010a26..7bb6034 100644
--- a/upd8.js
+++ b/upd8.js
@@ -933,8 +933,8 @@ async function writePage(directoryParts, {
 
     const sidebarHTML = sidebar.content && fixWS`
         <div id="sidebar" ${classes(
-            sidebar.wide && 'wide',
-            !sidebar.collapse && 'no-hide',
+            wide && 'wide',
+            !collapse && 'no-hide',
             ...sidebar.classes || []
         )}>
             ${sidebar.content}