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,46 +116,38 @@ categoriesController.get = function(req, res, next) {
}); });
}, },
function (categoryData, next) { function (categoryData, next) {
/*app.build_header({ res.locals.metaTags = [
req: req, {
res: res, name: 'title',
metaTags: [ content: categoryData.name
{ },
name: 'title', {
content: categoryData.name property: 'og:title',
}, content: categoryData.name
{ },
property: 'og:title', {
content: categoryData.name name: 'description',
}, content: categoryData.description
{ },
name: 'description', {
content: categoryData.description property: "og:type",
}, content: 'website'
{ }
property: "og:type", ];
content: 'website'
} res.locals.linkTags = [
], {
linkTags: [ rel: 'alternate',
{ type: 'application/rss+xml',
rel: 'alternate', href: nconf.get('url') + '/category/' + cid + '.rss'
type: 'application/rss+xml', },
href: nconf.get('url') + '/category/' + cid + '.rss' {
}, rel: 'up',
{ href: nconf.get('url')
rel: 'up', }
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