mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 11:31:23 +01:00
helpers.buildMetaTag
This commit is contained in:
@@ -9,6 +9,14 @@
|
||||
return (config.isLoggedIn || !config.privateUserInfo);
|
||||
};
|
||||
|
||||
helpers.buildMetaTag = function(tag) {
|
||||
var name = tag.name ? 'name="' + tag.name + '" ' : '',
|
||||
property = tag.property ? 'property="' + tag.property + '" ' : '',
|
||||
content = tag.content ? 'content="' + tag.content + '" ' : '';
|
||||
|
||||
return '<meta ' + name + property + content + ' />';
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -21,6 +29,7 @@
|
||||
var templates = templates || require('./templates');
|
||||
|
||||
templates.registerHelper('displayUsersLink', helpers.displayUsersLink);
|
||||
templates.registerHelper('buildMetaTag', helpers.buildMetaTag);
|
||||
};
|
||||
|
||||
})('undefined' === typeof module ? {
|
||||
|
||||
Reference in New Issue
Block a user