Fix up some less for supporting the info-pages

This commit is contained in:
Caleb James DeLisle
2017-08-01 11:53:06 +02:00
parent 896186d059
commit cd2b41f51e
7 changed files with 179 additions and 12 deletions

View File

@@ -177,12 +177,7 @@ $(function () {
'less!/customize/src/less2/main.less',
'css!/bower_components/bootstrap/dist/css/bootstrap.min.css',
], function () {
if (pathname === '/') {
// TODO(cjd): This is a hack because the template system doesn't make it easy.
$body.append($main);
return;
}
$body.append($topbar).append($main).append($footer);
$body.append($main);
if (/^\/user\//.test(pathname)) {
require([ '/user/main.js'], function () {});