fix: myriad typos and issues pt 2
This commit is contained in:
parent
be92f3bdf0
commit
b0aa0d6948
50 changed files with 120 additions and 69 deletions
|
@ -39,6 +39,6 @@ module.exports = {
|
|||
},
|
||||
rssLastUpdatedDate: (collection) => {
|
||||
if (!collection || !collection.length) return ''
|
||||
return collection[0].publishedAt
|
||||
return collection[0]['publishedAt']
|
||||
},
|
||||
}
|
||||
|
|
|
@ -16,8 +16,8 @@ module.exports = {
|
|||
return marked.parse(content)
|
||||
},
|
||||
getFirstAttachment: (post) => {
|
||||
if (post && post.attachments && post.attachments.length > 0) {
|
||||
return post.attachments[0].url ? post.attachments[0].url : post.attachments[0]
|
||||
if (post && post['attachments'] && post['attachments'].length > 0) {
|
||||
return post['attachments'][0].url ? post['attachments'][0].url : post['attachments'][0]
|
||||
}
|
||||
|
||||
return '/assets/img/social-card.png'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
module.exports = (collection) => {
|
||||
if (!collection || !collection.length) return ''
|
||||
return collection[0].publishedAt
|
||||
return collection[0]['publishedAt']
|
||||
}
|
||||
|
|
Reference in a new issue