« get me outta code hell

prefer consistent layout HTML over hacky CSS - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-06-03 11:37:05 -0300
committer(quasar) nebula <towerofnix@gmail.com>2021-06-03 11:37:45 -0300
commit73e2f31b6d8eccb938b65a7337ed856d882d822a (patch)
tree9ed4d69690bbe4618b447945d8a884bef416d677 /src/upd8.js
parentf4fe294d709add9164c57cf76cdd741c99d47855 (diff)
prefer consistent layout HTML over hacky CSS
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/upd8.js b/src/upd8.js
index b37dabd..a2262d6 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -1978,13 +1978,13 @@ writePage.html = (pageFn, {
     const layoutHTML = [
         navHTML,
         banner.position === 'top' && bannerHTML,
-        (sidebarLeftHTML || sidebarRightHTML) ? fixWS`
-            <div ${classes('layout-columns', !collapseSidebars && 'vertical-when-thin')}>
-                ${sidebarLeftHTML}
-                ${mainHTML}
-                ${sidebarRightHTML}
-            </div>
-        ` : mainHTML,
+        html.tag('div',
+            {class: ['layout-columns', !collapseSidebars && 'vertical-when-thin']},
+            [
+                sidebarLeftHTML,
+                mainHTML,
+                sidebarRightHTML
+            ]),
         banner.position === 'bottom' && bannerHTML,
         footerHTML
     ].filter(Boolean).join('\n');