Frontmatter getter for type

This commit is contained in:
Will Boyd
2024-02-26 14:22:40 -05:00
parent da11ff0a83
commit 268e69abdd
+5
View File
@@ -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];
}