@@ -110,8 +110,8 @@ const currentReading = bookshelfData.find((item: any) => item.status === 'readin
110110 <a href =' /blog' class =' text-sm text-primary hover:underline group-hover:translate-x-1 transition-transform inline-block' >查看更多 →</a >
111111 </div >
112112 <ul class =' flex flex-col gap-y-3' >
113- { allPostsByDate .map ((post ) => (
114- <PostPreview post = { post } />
113+ { allPostsByDate .map ((post , index ) => (
114+ <PostPreview post = { post } lazyLoadImage = { index > 0 } />
115115 ))}
116116 </ul >
117117 </div >
@@ -236,9 +236,11 @@ const currentReading = bookshelfData.find((item: any) => item.status === 'readin
236236 </div >
237237
238238<script is:inline >
239- // Force light theme on homepage
240- localStorage.setItem('theme', 'light');
241- document.documentElement.dataset.theme = 'light';
239+ // Force light theme on homepage - Execute immediately
240+ // (function() {
241+ // localStorage.setItem('theme', 'light');
242+ // document.documentElement.dataset.theme = 'light';
243+ // })();
242244
243245 // 数字滚动动画
244246 function animateCounter(element, targetValue, duration = 2000) {
@@ -266,18 +268,6 @@ const currentReading = bookshelfData.find((item: any) => item.status === 'readin
266268 requestAnimationFrame(updateCounter);
267269 }
268270
269- // 邮箱混淆 - 防止爬虫抓取
270- function obfuscateEmail() {
271- // 将邮箱地址拆分成多个部分,避免明文出现
272- const parts = ['1020082805', '@', 'qq', '.', 'com'];
273- const email = parts.join('');
274-
275- const emailLink = document.getElementById('email-link');
276- if (emailLink) {
277- emailLink.href = 'mailto:' + email;
278- }
279- }
280-
281271 // 更新总浏览量显示和进度条
282272 function updateViewsDisplay(viewsElement, progressElement, newValue, hasAnimated = false) {
283273 if (viewsElement && progressElement && newValue && newValue !== '-') {
@@ -372,15 +362,15 @@ const currentReading = bookshelfData.find((item: any) => item.status === 'readin
372362<style >
373363 /* 卡片渐入动画 */
374364 .dashboard-card {
375- animation: fadeInUp 0.6s ease-out ;
376- animation-fill-mode: both ;
365+ opacity: 0 ;
366+ animation: fadeInUp 0.6s ease-out forwards ;
377367 }
378368
379- .dashboard -card:nth-child(1) { animation-delay: 0.1s; }
380- .dashboard -card:nth-child(2) { animation-delay: 0.2s; }
381- .dashboard -card:nth-child(3) { animation-delay: 0.3s; }
382- .dashboard -card:nth-child(4) { animation-delay: 0.4s; }
383- .dashboard -card:nth-child(5) { animation-delay: 0.5s; }
369+ .reading -card { animation-delay: 0.1s; }
370+ .posts -card { animation-delay: 0.2s; }
371+ .avatar -card { animation-delay: 0.3s; }
372+ .stats -card { animation-delay: 0.4s; }
373+ .social -card { animation-delay: 0.5s; }
384374
385375 @keyframes fadeInUp {
386376 from {
0 commit comments