fix: apply seo agent improvements to src/app/blog/page.tsx

This commit is contained in:
cupadev-admin 2026-03-09 19:01:12 +00:00
parent e2c0a41c43
commit 03f402a4cc
1 changed files with 34 additions and 8 deletions

View File

@ -1,11 +1,37 @@
'use client' import type { Metadata } from 'next'
import PublicLayout from '@/components/public/PublicLayout' import BlogPageClient from '@/components/public/BlogPageClient'
import BlogListPage from '@/components/public/BlogListPage'
const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL || 'https://example.com'
const SITE_NAME = process.env.NEXT_PUBLIC_SITE_NAME || 'My Personal Site'
export const metadata: Metadata = {
title: 'Blog',
description: `Read the latest articles and posts on ${SITE_NAME}.`,
alternates: {
canonical: `${SITE_URL}/blog`,
},
openGraph: {
type: 'website',
url: `${SITE_URL}/blog`,
title: `Blog | ${SITE_NAME}`,
description: `Read the latest articles and posts on ${SITE_NAME}.`,
images: [
{
url: '/og-blog.png',
width: 1200,
height: 630,
alt: `Blog | ${SITE_NAME}`,
},
],
},
twitter: {
card: 'summary_large_image',
title: `Blog | ${SITE_NAME}`,
description: `Read the latest articles and posts on ${SITE_NAME}.`,
images: ['/og-blog.png'],
},
}
export default function BlogPage() { export default function BlogPage() {
return ( return <BlogPageClient />
<PublicLayout>
<BlogListPage />
</PublicLayout>
)
} }