1
0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 02:44:33 +03:00
Ghost/core/frontend/meta/keywords.js

13 lines
364 B
JavaScript
Raw Normal View History

const ghostHelperUtils = require('@tryghost/helpers').utils;
function getKeywords(data) {
if (data.post && data.post.tags && data.post.tags.length > 0) {
return ghostHelperUtils.visibility.filter(data.post.tags, ['public'], function processItem(item) {
return item.name;
});
}
return null;
}
module.exports = getKeywords;