头图、赞赏码图处理
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

@@ -24,8 +24,8 @@ const RewardButton = () => {
</div>
<div id='reward-qrcode' className='hidden flex space-x-10 animate__animated animate__fadeIn duration-200 my-5 px-5 mx-auto py-6 justify-center bg-white dark:bg-black dark:text-gray-200'>
<img className='md:w-72' src='/reward_code_alipay.png' />
<img className='md:w-72' src='/reward_code_wechat.png' />
<img className='md:w-72' src='/reward_code_alipay.png' />
<img className='md:w-72' src='/reward_code_wechat.png' />
</div>
</div>
)

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} />
)}
</>)}