v1.18.x
barisusakli 8 years ago
parent 3dc2a91990
commit 8b006fb1ab

@ -28,18 +28,27 @@ module.exports = function (Meta) {
}, {
property: 'og:site_name',
content: Meta.config.title || 'NodeBB'
}, {
name: 'keywords',
content: Meta.config.keywords || ''
}, {
name: 'msapplication-badge',
content: 'frequency=30; polling-uri=' + nconf.get('url') + '/sitemap.xml',
noEscape: true
}, {
name: 'msapplication-square150x150logo',
content: Meta.config['brand:logo'] || '',
noEscape: true
}];
if (Meta.config.keywords) {
defaultTags.push({
name: 'keywords',
content: Meta.config.keywords
});
}
if (Meta.config['brand:logo']) {
defaultTags.push({
name: 'msapplication-square150x150logo',
content: Meta.config['brand:logo'],
noEscape: true
});
}
plugins.fireHook('filter:meta.getMetaTags', defaultTags, next);
},
links: function (next) {

Loading…
Cancel
Save