fixed missing og:title on category view

v1.18.x
Julian Lam 11 years ago
parent b954668636
commit d8eec5dd2e

@ -599,7 +599,7 @@ module.exports.server = server;
}, },
{ {
property: 'og:title', property: 'og:title',
content: topicData.topic_name + ' | ' + (meta.config.title || 'NodeBB') content: topicData.topic_name
}, },
{ {
property: 'og:description', property: 'og:description',
@ -738,16 +738,24 @@ module.exports.server = server;
app.build_header({ app.build_header({
req: req, req: req,
res: res, res: res,
metaTags: [{ metaTags: [
name: 'title', {
content: categoryData.category_name name: 'title',
}, { content: categoryData.category_name
name: 'description', },
content: categoryData.category_description {
}, { property: 'og:title',
property: "og:type", content: categoryData.category_name
content: 'website' },
}], {
name: 'description',
content: categoryData.category_description
},
{
property: "og:type",
content: 'website'
}
],
linkTags: [ linkTags: [
{ {
rel: 'alternate', rel: 'alternate',

Loading…
Cancel
Save