Implement dynamic page titles

This commit is contained in:
gpt-engineer-app[bot]
2025-10-29 12:42:18 +00:00
parent 1cdd1f59fb
commit 2d66a4f778
43 changed files with 131 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ import { getCloudflareImageUrl } from '@/lib/cloudflareImageUtils';
import { Skeleton } from '@/components/ui/skeleton';
import { Header } from '@/components/layout/Header';
import { Footer } from '@/components/layout/Footer';
import { useDocumentTitle } from '@/hooks/useDocumentTitle';
export default function BlogPost() {
const { slug } = useParams<{ slug: string }>();
@@ -31,6 +32,9 @@ export default function BlogPost() {
},
enabled: !!slug,
});
// Update document title when post changes
useDocumentTitle(post?.title || 'Blog Post');
useEffect(() => {
if (slug) {