fix: apply seo agent improvements to src/app/blog/page.tsx
This commit is contained in:
parent
e2c0a41c43
commit
03f402a4cc
|
|
@ -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>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue