|
|
@@ -120,11 +120,11 @@ module.exports = function(crowi, app, req, locals) {
|
|
|
return Config.theme(config);
|
|
|
}
|
|
|
|
|
|
- locals.customTitle = function() {
|
|
|
+ locals.customTitle = function(path) {
|
|
|
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);
|
|
|
+ var custom_title = title.replace('{{sitename}}', app_title).replace('{{path}}', path);
|
|
|
return custom_title;
|
|
|
}
|
|
|
|