feat(website): init
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
function filterPublished(post) {
|
||||
const isPublished = post.node.frontmatter && post.node.frontmatter.published;
|
||||
return process.env.NODE_ENV === 'development' || isPublished;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
filterPublished,
|
||||
};
|
||||
Reference in New Issue
Block a user