mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-04 14:50:47 +01:00
closes #5434
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user