Added meta data to user profile pages, and also added noEscape
option to meta tag input. If set, validator escaping won't be
run on that value.
This commit is contained in:
Julian Lam
2015-11-11 14:20:43 -05:00
parent dbe5b963bd
commit 34725ec3e5
3 changed files with 51 additions and 6 deletions

View File

@@ -203,15 +203,18 @@ topicsController.get = function(req, res, callback) {
},
{
property: "og:url",
content: nconf.get('url') + '/topic/' + topicData.slug + (req.params.post_index ? ('/' + req.params.post_index) : '')
content: nconf.get('url') + '/topic/' + topicData.slug + (req.params.post_index ? ('/' + req.params.post_index) : ''),
noEscape: true
},
{
property: 'og:image',
content: ogImageUrl
content: ogImageUrl,
noEscape: true
},
{
property: "og:image:url",
content: ogImageUrl
content: ogImageUrl,
noEscape: true
},
{
property: "article:published_time",