Files
xyflow/website/generators/utils.js
2020-10-05 10:14:49 +02:00

9 lines
221 B
JavaScript

function filterPublished(post) {
const isPublished = post.node.frontmatter && post.node.frontmatter.published;
return process.env.NODE_ENV === 'development' || isPublished;
}
module.exports = {
filterPublished,
};