re-implementing meta and link tags - completified

v1.18.x
psychobunny 11 years ago
parent 3eb9f65c2e
commit fa2b5d1ee6

@ -3,6 +3,7 @@
var categoriesController = {}, var categoriesController = {},
async = require('async'), async = require('async'),
qs = require('querystring'), qs = require('querystring'),
nconf = require('nconf'),
categoryTools = require('./../categoryTools'), categoryTools = require('./../categoryTools'),
user = require('./../user'), user = require('./../user'),
categories = require('./../categories'), categories = require('./../categories'),
@ -115,10 +116,7 @@ categoriesController.get = function(req, res, next) {
}); });
}, },
function (categoryData, next) { function (categoryData, next) {
/*app.build_header({ res.locals.metaTags = [
req: req,
res: res,
metaTags: [
{ {
name: 'title', name: 'title',
content: categoryData.name content: categoryData.name
@ -135,8 +133,9 @@ categoriesController.get = function(req, res, next) {
property: "og:type", property: "og:type",
content: 'website' content: 'website'
} }
], ];
linkTags: [
res.locals.linkTags = [
{ {
rel: 'alternate', rel: 'alternate',
type: 'application/rss+xml', type: 'application/rss+xml',
@ -146,15 +145,9 @@ categoriesController.get = function(req, res, next) {
rel: 'up', rel: 'up',
href: nconf.get('url') href: nconf.get('url')
} }
] ];
}, function (err, header) {
next(err, {
header: header,
topics: categoryData
});
});*/
next(null, { next(null, {
header: null,
topics: categoryData topics: categoryData
}); });
} }

Loading…
Cancel
Save