|
|
@@ -97,6 +97,14 @@ module.exports = function(crowi, app, req, locals) {
|
|
|
return Config.customHeader(config);
|
|
|
}
|
|
|
|
|
|
+ locals.customTitle = function() {
|
|
|
+ var config = crowi.getConfig();
|
|
|
+ var title = Config.customTitle(config);
|
|
|
+ var app_title = config.crowi['app:title'] ? config.crowi['app:title'] : 'Crowi';
|
|
|
+ var custom_title = title.replace('{{sitename}}', app_title);
|
|
|
+ return custom_title;
|
|
|
+ }
|
|
|
+
|
|
|
locals.behaviorType = function() {
|
|
|
var config = crowi.getConfig()
|
|
|
return Config.behaviorType(config);
|