@codesinger0/shared-components 1.1.74 → 1.1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/SEO.jsx +13 -24
- package/package.json +1 -1
package/dist/components/SEO.jsx
CHANGED
|
@@ -6,41 +6,30 @@ const SEO = ({
|
|
|
6
6
|
description,
|
|
7
7
|
image,
|
|
8
8
|
url,
|
|
9
|
+
siteName,
|
|
9
10
|
type = 'website',
|
|
10
11
|
article = false,
|
|
11
12
|
publishedTime,
|
|
12
13
|
modifiedTime,
|
|
13
14
|
}) => {
|
|
14
|
-
// Default values
|
|
15
|
-
const defaultTitle = 'בת קיימא | סיורי ליקוט ותזונה אקולוגית - כל מה שרצית לדעת על צמחי בר אכילים';
|
|
16
|
-
const defaultDescription = 'בת קיימא - סיורי ליקוט, צמחי בר למאכל, קורס ליקוט, ארוחות בטבע, בישול שטח, סדנאות, אוכל מהטבע, צמחי מרפא, ללמוד ללקט, תזונה אקולוגית.';
|
|
17
|
-
const siteName = 'בת קיימא - ביה״ס לליקוט ובישול בטבע';
|
|
18
|
-
const defaultImage = 'https://batkayma.com/android-chrome-512x512.png';
|
|
19
|
-
const siteUrl = 'https://batkayma.com';
|
|
20
|
-
|
|
21
|
-
// Use provided values or defaults
|
|
22
|
-
const pageTitle = title || defaultTitle;
|
|
23
|
-
const pageDescription = description || defaultDescription;
|
|
24
|
-
const pageImage = image || defaultImage;
|
|
25
|
-
const pageUrl = url ? `${siteUrl}${url}` : siteUrl;
|
|
26
15
|
|
|
27
16
|
return (
|
|
28
17
|
<Helmet>
|
|
29
18
|
{/* Standard Meta Tags */}
|
|
30
|
-
<title>{
|
|
31
|
-
<meta name="description" content={
|
|
19
|
+
<title>{title}</title>
|
|
20
|
+
<meta name="description" content={description} />
|
|
32
21
|
|
|
33
22
|
{/* Open Graph Meta Tags */}
|
|
34
23
|
<meta property="og:locale" content="he_IL" />
|
|
35
24
|
<meta property="og:type" content={article ? 'article' : type} />
|
|
36
|
-
<meta property="og:title" content={
|
|
37
|
-
<meta property="og:description" content={
|
|
38
|
-
<meta property="og:url" content={
|
|
25
|
+
<meta property="og:title" content={title} />
|
|
26
|
+
<meta property="og:description" content={description} />
|
|
27
|
+
<meta property="og:url" content={url} />
|
|
39
28
|
<meta property="og:site_name" content={siteName} />
|
|
40
|
-
<meta property="og:image" content={
|
|
29
|
+
<meta property="og:image" content={image} />
|
|
41
30
|
<meta property="og:image:width" content="512" />
|
|
42
31
|
<meta property="og:image:height" content="512" />
|
|
43
|
-
<meta property="og:image:alt" content={
|
|
32
|
+
<meta property="og:image:alt" content={title} />
|
|
44
33
|
|
|
45
34
|
{/* Article specific meta tags */}
|
|
46
35
|
{article && publishedTime && (
|
|
@@ -52,13 +41,13 @@ const SEO = ({
|
|
|
52
41
|
|
|
53
42
|
{/* Twitter Card Meta Tags */}
|
|
54
43
|
<meta name="twitter:card" content="summary_large_image" />
|
|
55
|
-
<meta name="twitter:title" content={
|
|
56
|
-
<meta name="twitter:description" content={
|
|
57
|
-
<meta name="twitter:image" content={
|
|
58
|
-
<meta name="twitter:image:alt" content={
|
|
44
|
+
<meta name="twitter:title" content={title} />
|
|
45
|
+
<meta name="twitter:description" content={description} />
|
|
46
|
+
<meta name="twitter:image" content={image} />
|
|
47
|
+
<meta name="twitter:image:alt" content={title} />
|
|
59
48
|
|
|
60
49
|
{/* Canonical URL */}
|
|
61
|
-
<link rel="canonical" href={
|
|
50
|
+
<link rel="canonical" href={url} />
|
|
62
51
|
</Helmet>
|
|
63
52
|
);
|
|
64
53
|
};
|