mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 09:22:49 +03: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;
|