mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-06-05 15:09:59 +09:00
add post excerpt to frontmatter
This commit is contained in:
@@ -110,6 +110,11 @@ function getPostCoverImageId(postData) {
|
||||
return id;
|
||||
}
|
||||
|
||||
function getPostExcerpt(post) {
|
||||
const excerpt = post.encoded[1].replace(/(\r\n|\n|\r)/gm, " ");
|
||||
return excerpt;
|
||||
}
|
||||
|
||||
function collectAttachedImages(channelData) {
|
||||
const images = getItemsOfType(channelData, 'attachment')
|
||||
// filter to certain image file types
|
||||
|
||||
Reference in New Issue
Block a user