mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
fix for favicon
This commit is contained in:
@@ -129,7 +129,7 @@ module.exports.server = server;
|
|||||||
templateValues.linkTags.push({
|
templateValues.linkTags.push({
|
||||||
rel: "icon",
|
rel: "icon",
|
||||||
type: "image/x-icon",
|
type: "image/x-icon",
|
||||||
href: meta.config['brand:favicon'] || nconf.get('relative_path') + '/favicon.ico'
|
href: nconf.get('relative_path') + '/favicon.ico'
|
||||||
});
|
});
|
||||||
|
|
||||||
// Browser Title
|
// Browser Title
|
||||||
@@ -192,7 +192,9 @@ module.exports.server = server;
|
|||||||
|
|
||||||
logger.init(app);
|
logger.init(app);
|
||||||
|
|
||||||
app.use(express.favicon(path.join(__dirname, '../', 'public', 'favicon.ico')));
|
|
||||||
|
app.use(express.favicon(path.join(__dirname, '../', 'public', meta.config['brand:favicon'] ? meta.config['brand:favicon'] : 'favicon.ico')));
|
||||||
|
|
||||||
app.use(require('less-middleware')({
|
app.use(require('less-middleware')({
|
||||||
src: path.join(__dirname, '../', 'public'),
|
src: path.join(__dirname, '../', 'public'),
|
||||||
prefix: nconf.get('relative_path'),
|
prefix: nconf.get('relative_path'),
|
||||||
|
|||||||
Reference in New Issue
Block a user