mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-11 18:56:14 +09:00
Adds author to front matter
This will likely need some configuration to enable it, I threw this together at work but if there is intrest I can add that.
This commit is contained in:
committed by
Will Boyd
parent
755f752019
commit
36cbf638aa
@@ -110,6 +110,10 @@ 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