|
|
|
@ -13,9 +13,6 @@ categoriesController.list = function (req, res, next) {
|
|
|
|
|
res.locals.metaTags = [{
|
|
|
|
|
name: 'title',
|
|
|
|
|
content: String(meta.config.title || 'NodeBB'),
|
|
|
|
|
}, {
|
|
|
|
|
property: 'og:title',
|
|
|
|
|
content: '[[pages:categories]]',
|
|
|
|
|
}, {
|
|
|
|
|
property: 'og:type',
|
|
|
|
|
content: 'website',
|
|
|
|
@ -42,6 +39,10 @@ categoriesController.list = function (req, res, next) {
|
|
|
|
|
|
|
|
|
|
if (req.originalUrl.startsWith(nconf.get('relative_path') + '/api/categories') || req.originalUrl.startsWith(nconf.get('relative_path') + '/categories')) {
|
|
|
|
|
data.breadcrumbs = helpers.buildBreadcrumbs([{ text: data.title }]);
|
|
|
|
|
res.locals.metaTags.push({
|
|
|
|
|
property: 'og:title',
|
|
|
|
|
content: '[[pages:categories]]',
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
data.categories.forEach(function (category) {
|
|
|
|
|