|
|
|
@ -13,9 +13,6 @@ categoriesController.list = function (req, res, next) {
|
|
|
|
|
res.locals.metaTags = [{
|
|
|
|
|
name: 'title',
|
|
|
|
|
content: String(meta.config.title || 'NodeBB'),
|
|
|
|
|
}, {
|
|
|
|
|
name: 'description',
|
|
|
|
|
content: String(meta.config.description || ''),
|
|
|
|
|
}, {
|
|
|
|
|
property: 'og:title',
|
|
|
|
|
content: '[[pages:categories]]',
|
|
|
|
@ -24,6 +21,13 @@ categoriesController.list = function (req, res, next) {
|
|
|
|
|
content: 'website',
|
|
|
|
|
}];
|
|
|
|
|
|
|
|
|
|
if (meta.config.description) {
|
|
|
|
|
res.locals.metaTags.push({
|
|
|
|
|
name: 'description',
|
|
|
|
|
content: String(meta.config.description || ''),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var ogImage = meta.config['og:image'] || meta.config['brand:logo'] || '';
|
|
|
|
|
if (ogImage) {
|
|
|
|
|
if (!ogImage.startsWith('http')) {
|
|
|
|
|