@griddo/cx 1.75.36 → 1.75.37
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 +7 -10
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.37",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"react-helmet": "^6.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@griddo/eslint-config-back": "^1.75.
|
|
68
|
+
"@griddo/eslint-config-back": "^1.75.37",
|
|
69
69
|
"eslint": "^7.5.0",
|
|
70
70
|
"eslint-plugin-node": "^11.1.0",
|
|
71
71
|
"eslint-plugin-react": "7.14.3",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"publishConfig": {
|
|
98
98
|
"access": "public"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "41e8c3e94e959bdf33b22b44523533673d1a59f2"
|
|
101
101
|
}
|
|
@@ -33,9 +33,8 @@ export const Head = data => {
|
|
|
33
33
|
openGraph,
|
|
34
34
|
componentsVersion,
|
|
35
35
|
griddoVersion,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
},
|
|
36
|
+
siteScript: siteScriptBulk,
|
|
37
|
+
page: { dimensions, fullUrl },
|
|
39
38
|
},
|
|
40
39
|
} = data;
|
|
41
40
|
|
|
@@ -47,10 +46,8 @@ export const Head = data => {
|
|
|
47
46
|
!!metaRobots &&
|
|
48
47
|
(siteOptions?.showBasicMetaRobots || metaRobots !== 'index,follow');
|
|
49
48
|
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
generateAutomaticDimensions
|
|
53
|
-
);
|
|
49
|
+
const analyticsScript = siteScriptBulk ? siteScriptBulk.trim() : '';
|
|
50
|
+
const analyticsDimensions = dimensions?.values || null;
|
|
54
51
|
|
|
55
52
|
const emptyCodeScript = { props: { dangerouslySetInnerHTML: {} } };
|
|
56
53
|
|
|
@@ -102,7 +99,7 @@ export const Head = data => {
|
|
|
102
99
|
cleanPageLanguages.length > 1;
|
|
103
100
|
|
|
104
101
|
const currentTime = new Date().toString();
|
|
105
|
-
|
|
102
|
+
|
|
106
103
|
return (
|
|
107
104
|
<>
|
|
108
105
|
{!!pageMetadata?.title && <title>{pageMetadata?.title}</title>}
|
|
@@ -233,7 +230,7 @@ export default data => {
|
|
|
233
230
|
generateAutomaticDimensions
|
|
234
231
|
);
|
|
235
232
|
|
|
236
|
-
if (!content.dimensions) content.dimensions =
|
|
233
|
+
if (!content.dimensions) content.dimensions = {};
|
|
237
234
|
content.dimensions.values = analyticsDimensions;
|
|
238
235
|
|
|
239
236
|
return (
|
|
@@ -275,4 +272,4 @@ export default data => {
|
|
|
275
272
|
/>
|
|
276
273
|
</SiteProvider>
|
|
277
274
|
);
|
|
278
|
-
};
|
|
275
|
+
};
|