barisusakli 11 years ago
parent f247c2195e
commit 0741b162cb

@ -247,7 +247,7 @@ var db = require('./database'),
for (var i=0; i<categories.length; ++i) {
if (categories[i]) {
categories[i].backgroundImage = categories[i].image ? 'url(' + nconf.get('relative_path') + categories[i].image + ')' : '';
categories[i].backgroundImage = categories[i].image ? nconf.get('relative_path') + categories[i].image : '';
categories[i].disabled = categories[i].disabled ? parseInt(categories[i].disabled, 10) !== 0 : false;
}
}

@ -124,6 +124,13 @@ categoriesController.get = function(req, res, next) {
}
];
if(categoryData.backgroundImage) {
res.locals.metaTags.push({
name: 'og:image',
content: categoryData.backgroundImage
});
}
res.locals.linkTags = [
{
rel: 'alternate',

Loading…
Cancel
Save