@griddo/cx 1.75.86 → 1.75.91
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/package.json +3 -3
- package/src/components/template.js +9 -23
- package/src/utils/helpers.js +1 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/cx",
|
|
3
3
|
"description": "Griddo SSG based on Gatsby",
|
|
4
|
-
"version": "1.75.
|
|
4
|
+
"version": "1.75.91",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"react-helmet": "^6.0.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@griddo/eslint-config-back": "^1.75.
|
|
69
|
+
"@griddo/eslint-config-back": "^1.75.91",
|
|
70
70
|
"eslint": "^7.5.0",
|
|
71
71
|
"eslint-plugin-node": "^11.1.0",
|
|
72
72
|
"eslint-plugin-react": "7.14.3",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"publishConfig": {
|
|
99
99
|
"access": "public"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "6e7ca85d130af1b345727a7aa018516a43ae35a1"
|
|
102
102
|
}
|
|
@@ -137,22 +137,22 @@ export const Head = data => {
|
|
|
137
137
|
{/* Robots */}
|
|
138
138
|
{showMetaRobots && <meta name="robots" content={metaRobots} />}
|
|
139
139
|
|
|
140
|
-
{/*
|
|
140
|
+
{/* Open Graph */}
|
|
141
141
|
{!!siteMetadata?.title && (
|
|
142
142
|
<meta property="og:site_name" content={siteMetadata?.title} />
|
|
143
143
|
)}
|
|
144
144
|
{!!locale && <meta property="og:locale" content={locale} />}
|
|
145
|
-
{
|
|
145
|
+
{!!openGraph?.title && (
|
|
146
146
|
<meta
|
|
147
147
|
property="og:title"
|
|
148
|
-
content={openGraph?.title
|
|
148
|
+
content={openGraph?.title}
|
|
149
149
|
/>
|
|
150
150
|
)}
|
|
151
151
|
<meta property="og:type" content={openGraph?.type || 'website'} />
|
|
152
|
-
{
|
|
152
|
+
{!!openGraph?.description && (
|
|
153
153
|
<meta
|
|
154
154
|
property="og:description"
|
|
155
|
-
content={openGraph?.description
|
|
155
|
+
content={openGraph?.description}
|
|
156
156
|
/>
|
|
157
157
|
)}
|
|
158
158
|
{!!openGraph?.image && (
|
|
@@ -162,28 +162,14 @@ export const Head = data => {
|
|
|
162
162
|
|
|
163
163
|
{/* Twitter */}
|
|
164
164
|
<meta property="twitter:card" content="summary_large_image" />
|
|
165
|
-
{
|
|
166
|
-
<meta
|
|
167
|
-
property="twitter:title"
|
|
168
|
-
content={openGraph?.title || pageMetadata?.title}
|
|
169
|
-
/>
|
|
170
|
-
)}
|
|
171
|
-
{(!!openGraph?.description || pageMetadata?.description) && (
|
|
172
|
-
<meta
|
|
173
|
-
property="twitter:description"
|
|
174
|
-
content={openGraph?.description || pageMetadata?.description}
|
|
175
|
-
/>
|
|
176
|
-
)}
|
|
177
|
-
{(!!openGraph?.twitterImage || !!openGraph?.image) && (
|
|
165
|
+
{!!openGraph?.twitterImage && (
|
|
178
166
|
<meta
|
|
179
167
|
property="twitter:image"
|
|
180
|
-
content={openGraph?.twitterImage
|
|
168
|
+
content={openGraph?.twitterImage}
|
|
181
169
|
/>
|
|
182
170
|
)}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
content={pageMetadata?.canonical || fullUrl}
|
|
186
|
-
/>
|
|
171
|
+
|
|
172
|
+
{/* Debug */}
|
|
187
173
|
{!siteOptions?.avoidDebugMetas && (
|
|
188
174
|
<meta
|
|
189
175
|
property="debug"
|
package/src/utils/helpers.js
CHANGED
|
@@ -94,13 +94,12 @@ const getPageMetaData = params => {
|
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
const getOpenGraph = ({
|
|
97
|
-
title,
|
|
98
97
|
socialTitle,
|
|
99
98
|
socialDescription,
|
|
100
99
|
socialImage,
|
|
101
100
|
}) => ({
|
|
102
101
|
type: 'website',
|
|
103
|
-
title: socialTitle
|
|
102
|
+
title: socialTitle,
|
|
104
103
|
description: socialDescription,
|
|
105
104
|
image: formatImage(socialImage, 1280, 768),
|
|
106
105
|
twitterImage: formatImage(socialImage, 1280, 768),
|