feat: global SEO settings and JSON-LD in frontend layout
This commit is contained in:
parent
0fa65c0802
commit
bf1b11d6a9
@ -3,8 +3,45 @@ import './globals.css';
|
||||
import ClientLayout from './ClientLayout';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Canina Iran - کانینا ایران',
|
||||
description: 'لابراتوار تخصصی مکملهای حیوانات خانگی کانینا',
|
||||
metadataBase: new URL(process.env.NEXT_PUBLIC_SITE_URL || 'https://canina-iran.com'),
|
||||
title: {
|
||||
template: '%s | کانینا ایران',
|
||||
default: 'کانینا ایران - مکملهای درمانی حیوانات خانگی',
|
||||
},
|
||||
description: 'تدارک هوشمندانه سلامت برای همراهان وفادار شما. کانینا ایران واردکننده انحصاری مکملهای درمانی با گرید دارویی اختصاصی از آلمان.',
|
||||
keywords: ['مکمل حیوانات خانگی', 'مکمل سگ', 'مکمل گربه', 'کانینا', 'داروی حیوانات', 'Canina Iran'],
|
||||
authors: [{ name: 'Canina Iran' }],
|
||||
creator: 'Canina Iran',
|
||||
publisher: 'Canina Iran',
|
||||
formatDetection: {
|
||||
email: false,
|
||||
address: false,
|
||||
telephone: false,
|
||||
},
|
||||
openGraph: {
|
||||
title: 'کانینا ایران - مکملهای درمانی حیوانات خانگی',
|
||||
description: 'واردکننده انحصاری مکملهای درمانی با گرید دارویی اختصاصی از آلمان',
|
||||
url: 'https://canina-iran.com',
|
||||
siteName: 'کانینا ایران',
|
||||
locale: 'fa_IR',
|
||||
type: 'website',
|
||||
},
|
||||
twitter: {
|
||||
card: 'summary_large_image',
|
||||
title: 'کانینا ایران',
|
||||
description: 'مکملهای درمانی حیوانات خانگی کانینا',
|
||||
},
|
||||
robots: {
|
||||
index: true,
|
||||
follow: true,
|
||||
googleBot: {
|
||||
index: true,
|
||||
follow: true,
|
||||
'max-video-preview': -1,
|
||||
'max-image-preview': 'large',
|
||||
'max-snippet': -1,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
@ -12,9 +49,29 @@ export default function RootLayout({
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const jsonLd = {
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'Organization',
|
||||
name: 'کانینا ایران',
|
||||
url: 'https://canina-iran.com',
|
||||
logo: 'https://canina.de/media/fb/d5/47/1683116813/Logo.png',
|
||||
contactPoint: {
|
||||
'@type': 'ContactPoint',
|
||||
telephone: '+98-21-88884444',
|
||||
contactType: 'customer service',
|
||||
email: 'info@canina-iran.com',
|
||||
areaServed: 'IR',
|
||||
availableLanguage: 'Persian'
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<html lang="fa" dir="rtl">
|
||||
<body className="min-h-screen bg-medical-gray-50 font-sans">
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
|
||||
/>
|
||||
<ClientLayout>
|
||||
{children}
|
||||
</ClientLayout>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user