mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
use [[pages:home]] instead
This commit is contained in:
@@ -347,7 +347,7 @@ middleware.processRender = function(req, res, next) {
|
||||
|
||||
if (res.locals.isAPI) {
|
||||
if (req.route.path === '/api/') {
|
||||
options.title = 'Index';
|
||||
options.title = '[[pages:home]]';
|
||||
}
|
||||
|
||||
return res.json(options);
|
||||
@@ -528,7 +528,7 @@ function redirectToLogin(req, res) {
|
||||
}
|
||||
|
||||
function modifyTitle(obj) {
|
||||
var title = 'Index | ' + validator.escape(meta.config.title || 'NodeBB');
|
||||
var title = '[[pages:home]] | ' + validator.escape(meta.config.title || 'NodeBB');
|
||||
obj.browserTitle = title;
|
||||
|
||||
if (obj.metaTags) {
|
||||
|
||||
Reference in New Issue
Block a user