mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-23 23:00:06 +02:00
moved favicon into default link tags, and fixed bug that caused link tags to not show up
This commit is contained in:
@@ -31,6 +31,10 @@ module.exports = function(Meta) {
|
||||
content: Meta.config['brand:logo'] || ''
|
||||
}]),
|
||||
async.apply(plugins.fireHook, 'filter:meta.getLinkTags', [{
|
||||
rel: "icon",
|
||||
type: "image/x-icon",
|
||||
href: nconf.get('relative_path') + '/favicon.ico'
|
||||
}, {
|
||||
rel: 'apple-touch-icon',
|
||||
href: nconf.get('relative_path') + '/apple-touch-icon'
|
||||
}])
|
||||
@@ -46,11 +50,6 @@ module.exports = function(Meta) {
|
||||
});
|
||||
|
||||
link = tags[1].concat(link || []);
|
||||
link.unshift({
|
||||
rel: "icon",
|
||||
type: "image/x-icon",
|
||||
href: nconf.get('relative_path') + '/favicon.ico'
|
||||
});
|
||||
|
||||
callback(null, {
|
||||
meta: meta,
|
||||
|
||||
@@ -270,7 +270,7 @@ middleware.renderHeader = function(req, res, callback) {
|
||||
templateValues.browserTitle = results.title;
|
||||
templateValues.navigation = results.navigation
|
||||
templateValues.metaTags = results.tags.meta;
|
||||
templateValues.metalinkTags = results.tags.link;
|
||||
templateValues.linkTags = results.tags.link;
|
||||
templateValues.isAdmin = results.user.isAdmin;
|
||||
templateValues.user = results.user;
|
||||
templateValues.userJSON = JSON.stringify(results.user);
|
||||
|
||||
Reference in New Issue
Block a user