Inject custom CSS and JS files in layout.hbs
This commit is contained in:
parent
745bfb06e3
commit
2177bf43ca
3 changed files with 17 additions and 0 deletions
3
app.js
3
app.js
|
@ -180,6 +180,9 @@ app.use((req, res, next) => {
|
|||
res.locals.menu = menu;
|
||||
tools.updateMenu(res);
|
||||
|
||||
res.locals.customStyles = config.customstyles || [];
|
||||
res.locals.customScripts = config.customscripts || [];
|
||||
|
||||
settingsModel.list(['ua_code', 'shoutout'], (err, configItems) => {
|
||||
if (err) {
|
||||
return next(err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue