diff options
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'); |