mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-18 22:23:41 +09:00
Move author logic to frontmatter getter
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// get author, without decoding
|
||||
// WordPress doesn't allow funky characters in author names anyway
|
||||
module.exports = (post) => {
|
||||
return post.data.creator[0];
|
||||
}
|
||||
Reference in New Issue
Block a user