fix: add useScrollReveal to BlogListPage — reveal class was hiding all content
This commit is contained in:
@@ -3,6 +3,7 @@ import { Link } from 'react-router-dom';
|
|||||||
import SEOHead from '../components/seo/SEOHead';
|
import SEOHead from '../components/seo/SEOHead';
|
||||||
import { useLanguage } from '../contexts/LanguageContext';
|
import { useLanguage } from '../contexts/LanguageContext';
|
||||||
import { loadManifest, type ContentMeta } from '../lib/content';
|
import { loadManifest, type ContentMeta } from '../lib/content';
|
||||||
|
import { useScrollReveal } from '../hooks/useScrollReveal';
|
||||||
|
|
||||||
function formatDate(dateStr: string, lang: string): string {
|
function formatDate(dateStr: string, lang: string): string {
|
||||||
const d = new Date(dateStr);
|
const d = new Date(dateStr);
|
||||||
@@ -24,6 +25,8 @@ export default function BlogListPage() {
|
|||||||
});
|
});
|
||||||
}, [language]);
|
}, [language]);
|
||||||
|
|
||||||
|
useScrollReveal();
|
||||||
|
|
||||||
const zh = language === 'zh';
|
const zh = language === 'zh';
|
||||||
const featured = posts[0];
|
const featured = posts[0];
|
||||||
const rest = posts.slice(1);
|
const rest = posts.slice(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user