diff --git a/src/frontmatter/type.js b/src/frontmatter/type.js new file mode 100644 index 0000000..25bfab4 --- /dev/null +++ b/src/frontmatter/type.js @@ -0,0 +1,5 @@ +// get type, often this will always be "post" +// but can also be "page" or other custom types +module.exports = (post) => { + return post.data.post_type[0]; +}