diff --git a/lib/index-web.js b/lib/index-web.js index cc2645037..6ffaa843b 100644 --- a/lib/index-web.js +++ b/lib/index-web.js @@ -33,11 +33,12 @@ module.exports = function(config, auth, storage) { Search.configureStorage(storage) + Handlebars.registerPartial('entry', fs.readFileSync(require.resolve('./GUI/entry.hbs'), 'utf8')) + if(config.web && config.web.template) { var template = Handlebars.compile(fs.readFileSync(config.web.template, 'utf8')); } else { - Handlebars.registerPartial('entry', fs.readFileSync(require.resolve('./GUI/entry.hbs'), 'utf8')) var template = Handlebars.compile(fs.readFileSync(require.resolve('./GUI/index.hbs'), 'utf8')) } app.get('/', function(req, res, next) { @@ -153,4 +154,3 @@ module.exports = function(config, auth, storage) { }) return app } -