mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
11 lines
245 B
JavaScript
11 lines
245 B
JavaScript
|
function getKeywords(data) {
|
||
|
if (data.post && data.post.tags && data.post.tags.length > 0) {
|
||
|
return data.post.tags.map(function (tag) {
|
||
|
return tag.name;
|
||
|
});
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
module.exports = getKeywords;
|