mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-06-05 15:09:59 +09:00
Frontmatter getter for type
This commit is contained in:
@@ -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];
|
||||
}
|
||||
Reference in New Issue
Block a user