头图、赞赏码图处理
This commit is contained in:
tangly1024
2021-12-01 17:47:48 +08:00
parent 78e6595648
commit 6db0b69288
2 changed files with 4 additions and 3 deletions

View File

@@ -52,7 +52,8 @@ const ArticleDetail = ({ post, blockMap, tags, prev, next, posts, categories })
{post.type && !post.type.includes('Page') && (<>
{/* 封面图 */}
{post.page_cover && post.page_cover.length > 1 && (
<img className='bg-center object-cover w-full hover:shadow-2xl hover:scale-105 transform duration-200 mx-auto max-w-5xl mb-2 md:flex-shrink-0 animate__fadeIn animate__animated' style={{ maxHeight: '40rem' }} loading='lazy'
<img className='bg-center object-cover w-full hover:shadow-2xl hover:scale-105 transform duration-200 mx-auto max-w-5xl mb-2 md:flex-shrink-0 animate__fadeIn animate__animated'
style={{ maxHeight: '40rem' }}
src={post.page_cover} alt={post.title} />
)}
</>)}