moved favicon into default link tags, and fixed bug that caused link tags to not show up

v1.18.x
Julian Lam 10 years ago
parent a72501f3b4
commit 610d687a96

@ -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);

Loading…
Cancel
Save