mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-06-05 15:09:59 +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];
|
||||
}
|
||||
@@ -110,10 +110,6 @@ function getPostCoverImageId(postData) {
|
||||
return id;
|
||||
}
|
||||
|
||||
function getAuthor(post) {
|
||||
return post.creator[0]
|
||||
}
|
||||
|
||||
function collectAttachedImages(channelData) {
|
||||
const images = getItemsOfType(channelData, 'attachment')
|
||||
// filter to certain image file types
|
||||
|
||||
Reference in New Issue
Block a user