From f0608b5a140fce1d92d4d0bc2bf59ed1805eeb14 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 11 Dec 2021 23:56:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=96=87=E7=AB=A0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=9A=84=E6=96=87=E7=AB=A0=E5=B0=81=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/_partial/main/post_list/post_card.ejs | 30 -------------------- 1 file changed, 30 deletions(-) diff --git a/layout/_partial/main/post_list/post_card.ejs b/layout/_partial/main/post_list/post_card.ejs index 472ffc7..5d32216 100755 --- a/layout/_partial/main/post_list/post_card.ejs +++ b/layout/_partial/main/post_list/post_card.ejs @@ -1,36 +1,6 @@ <% function layoutDiv() { var el = ''; - // 封面 - if (post.cover || theme.article.auto_cover) { - var cover_url; - if (post.cover != undefined) { - if (post.cover.includes('/')) { - cover_url = post.cover; - } else { - cover_url = 'https://source.unsplash.com/1280x640/?' + post.cover; - } - } else { - // 自动以 tags 作为关键词搜索封面 - if (post.tags) { - var params = ''; - post.tags.reverse().forEach((tag, i) => { - if (i > 0) { - params += ','; - } - params += tag.name; - }); - cover_url = 'https://source.unsplash.com/1280x640/?' + params; - } else { - cover_url = 'https://source.unsplash.com/random/1280x640'; - } - } - if (cover_url) { - el += '
'; - el += ''; - el += '
'; - } - } // 标题 el += '

';