fix: post images
This commit is contained in:
parent
6004eae584
commit
401ed70d37
3 changed files with 9 additions and 11 deletions
|
@ -15,11 +15,8 @@ module.exports = {
|
|||
mdToHtml: (content) => {
|
||||
return marked.parse(content)
|
||||
},
|
||||
getPostImage: (post) => {
|
||||
if (post && post['image'] && post['image'] !== '') {
|
||||
return post['image']
|
||||
}
|
||||
|
||||
getPostImage: (image) => {
|
||||
if (image && image !== '') return image
|
||||
return '/assets/img/social-card.png'
|
||||
},
|
||||
webmentionsByUrl: (webmentions, url) => {
|
||||
|
|
Reference in a new issue