feat: add sitemap, tag for SEO
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// components/SEOHead.jsx
|
||||
export function SEOHead({
|
||||
title,
|
||||
description,
|
||||
canonical,
|
||||
ogImage
|
||||
}) {
|
||||
const siteUrl = 'https://aramland.approagency.ir/';
|
||||
|
||||
return (
|
||||
<>
|
||||
<title>{title}</title>
|
||||
<meta name="description" content={description} />
|
||||
|
||||
{/* Canonical URL */}
|
||||
<link rel="canonical" href={`${siteUrl}${canonical}`} />
|
||||
|
||||
{/* Open Graph */}
|
||||
<meta property="og:title" content={title} />
|
||||
<meta property="og:description" content={description} />
|
||||
<meta property="og:url" content={`${siteUrl}${canonical}`} />
|
||||
<meta property="og:image" content={ogImage || `${siteUrl}/og-image.png`} />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:locale" content="fa_IR" />
|
||||
|
||||
{/* Twitter */}
|
||||
<meta name="twitter:title" content={title} />
|
||||
<meta name="twitter:description" content={description} />
|
||||
<meta name="twitter:image" content={ogImage || `${siteUrl}/og-image.png`} />
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user