fix: add useScrollReveal to BlogListPage — reveal class was hiding all content

This commit is contained in:
2026-03-26 16:59:22 +08:00
parent 99e1314bf9
commit 1956842f23

View File

@@ -3,6 +3,7 @@ import { Link } from 'react-router-dom';
import SEOHead from '../components/seo/SEOHead';
import { useLanguage } from '../contexts/LanguageContext';
import { loadManifest, type ContentMeta } from '../lib/content';
import { useScrollReveal } from '../hooks/useScrollReveal';
function formatDate(dateStr: string, lang: string): string {
const d = new Date(dateStr);
@@ -24,6 +25,8 @@ export default function BlogListPage() {
});
}, [language]);
useScrollReveal();
const zh = language === 'zh';
const featured = posts[0];
const rest = posts.slice(1);