diff options
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 |
commit | 73e2f31b6d8eccb938b65a7337ed856d882d822a (patch) | |
tree | 9ed4d69690bbe4618b447945d8a884bef416d677 /src/upd8.js | |
parent | f4fe294d709add9164c57cf76cdd741c99d47855 (diff) |
prefer consistent layout HTML over hacky CSS
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-x | src/upd8.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/upd8.js b/src/upd8.js index b37dabd9..a2262d6a 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'); |