Merge pull request #194 from theWorkFsz/fix/article-sort-img-src

fix: 修复 articleSort 设置文章封面逻辑不一致的问题
This commit is contained in:
Jerry Wong
2020-04-26 14:41:53 +08:00
committed by GitHub
Unverified

View File

@@ -11,7 +11,7 @@ mixin articleSort(posts)
if article.cover && theme.cover.archives_enable if article.cover && theme.cover.archives_enable
.article-sort-img .article-sort-img
a.article-sort-item__img(href=url_for(article.path)) a.article-sort-item__img(href=url_for(article.path))
img(src=article.cover alt=article.title || 'No Title' onerror=`this.onerror=null;this.src='`+ url_for(theme.lodding_bg.post_page) + `'`) img(src=`${article.cover}` alt=article.title || 'No Title' onerror=`this.onerror=null;this.src='`+ url_for(theme.lodding_bg.post_page) + `'`)
.article-sort-post .article-sort-post
a.article-sort-item__post(href=url_for(article.path)) a.article-sort-item__post(href=url_for(article.path))
i.fa.fa-clock-o(aria-hidden="true") i.fa.fa-clock-o(aria-hidden="true")