@griddo/cx 1.68.7 → 1.69.2
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/gatsby-config.js +1 -0
- package/gatsby-node.js +2 -0
- package/package.json +4 -3
- package/src/components/seo.js +12 -9
- package/src/components/template.js +2 -0
- package/src/utils/helpers.js +1 -1
- package/src/utils/pages.js +4 -3
package/gatsby-config.js
CHANGED
package/gatsby-node.js
CHANGED
|
@@ -100,6 +100,7 @@ exports.createPages = async ({ actions }) => {
|
|
|
100
100
|
|
|
101
101
|
const {
|
|
102
102
|
cloudinaryName,
|
|
103
|
+
useMetaTitle,
|
|
103
104
|
} = SettingsService.settings;
|
|
104
105
|
|
|
105
106
|
NavService.navigations = {
|
|
@@ -134,6 +135,7 @@ exports.createPages = async ({ actions }) => {
|
|
|
134
135
|
cloudinaryName,
|
|
135
136
|
componentsVersion,
|
|
136
137
|
showBasicMetaRobots,
|
|
138
|
+
useMetaTitle,
|
|
137
139
|
BUILD_MODE,
|
|
138
140
|
siteScript
|
|
139
141
|
};
|
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.
|
|
4
|
+
"version": "1.69.2",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"gatsby-plugin-catch-links": "^4.8.0",
|
|
50
50
|
"gatsby-plugin-no-sourcemaps": "^4.8.0",
|
|
51
51
|
"gatsby-plugin-polyfill-io": "^1.1.0",
|
|
52
|
+
"gatsby-plugin-provide-react": "^1.0.2",
|
|
52
53
|
"gatsby-plugin-react-helmet": "^5.8.0",
|
|
53
54
|
"gatsby-plugin-react-svg": "^3.1.0",
|
|
54
55
|
"gatsby-plugin-remove-generator": "^1.2.0",
|
|
@@ -64,7 +65,7 @@
|
|
|
64
65
|
"react-helmet": "^6.0.0"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
67
|
-
"@griddo/eslint-config-back": "^1.
|
|
68
|
+
"@griddo/eslint-config-back": "^1.69.2",
|
|
68
69
|
"eslint": "^7.5.0",
|
|
69
70
|
"eslint-plugin-node": "^11.1.0",
|
|
70
71
|
"eslint-plugin-react": "7.14.3",
|
|
@@ -96,5 +97,5 @@
|
|
|
96
97
|
"publishConfig": {
|
|
97
98
|
"access": "public"
|
|
98
99
|
},
|
|
99
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "a075e961c42e59fd6d4da4997d18736ddb9eef4b"
|
|
100
101
|
}
|
package/src/components/seo.js
CHANGED
|
@@ -22,6 +22,7 @@ export default function SEO(props) {
|
|
|
22
22
|
showBasicMetaRobots,
|
|
23
23
|
analyticsDimensions,
|
|
24
24
|
analyticsScript,
|
|
25
|
+
useMetaTitle,
|
|
25
26
|
} = props;
|
|
26
27
|
|
|
27
28
|
const metaRobots = cleanCommaSeparated(
|
|
@@ -62,20 +63,22 @@ export default function SEO(props) {
|
|
|
62
63
|
<>
|
|
63
64
|
<Helmet title={title}>
|
|
64
65
|
<meta name="description" content={description} />
|
|
65
|
-
<meta name="title" content={title} />
|
|
66
|
+
{useMetaTitle && <meta name="title" content={title} />}
|
|
66
67
|
{canonical && <link rel="canonical" href={canonical} />}
|
|
67
68
|
<link rel="icon" href={faviconResized} />
|
|
68
69
|
|
|
69
70
|
{/* Alternate */}
|
|
70
71
|
{pageLanguages?.length > 1 &&
|
|
71
|
-
pageLanguages
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
pageLanguages
|
|
73
|
+
.filter(item => item.isLive)
|
|
74
|
+
.map(item => (
|
|
75
|
+
<link
|
|
76
|
+
key={item.pageId}
|
|
77
|
+
rel="alternate"
|
|
78
|
+
href={`${item.url}`}
|
|
79
|
+
hreflang={item.locale?.replace(/_/g, '-')}
|
|
80
|
+
/>
|
|
81
|
+
))}
|
|
79
82
|
|
|
80
83
|
{/* Robots */}
|
|
81
84
|
{showMetaRobots && <meta name="robots" content={metaRobots} />}
|
|
@@ -25,6 +25,7 @@ export default data => {
|
|
|
25
25
|
showBasicMetaRobots,
|
|
26
26
|
theme,
|
|
27
27
|
cloudinaryName,
|
|
28
|
+
useMetaTitle,
|
|
28
29
|
socials,
|
|
29
30
|
siteLangs,
|
|
30
31
|
BUILD_MODE,
|
|
@@ -77,6 +78,7 @@ export default data => {
|
|
|
77
78
|
showBasicMetaRobots={showBasicMetaRobots}
|
|
78
79
|
analyticsDimensions={analyticsDimensions}
|
|
79
80
|
analyticsScript={analyticsScript}
|
|
81
|
+
useMetaTitle={useMetaTitle}
|
|
80
82
|
/>
|
|
81
83
|
<RenderGriddoPage
|
|
82
84
|
content={content}
|
package/src/utils/helpers.js
CHANGED
package/src/utils/pages.js
CHANGED
|
@@ -23,6 +23,7 @@ async function renderSinglePage(page, additionalInfo, createPage) {
|
|
|
23
23
|
siteLangs,
|
|
24
24
|
navigations: { header, footer },
|
|
25
25
|
cloudinaryName,
|
|
26
|
+
useMetaTitle,
|
|
26
27
|
componentsVersion,
|
|
27
28
|
showBasicMetaRobots,
|
|
28
29
|
BUILD_MODE,
|
|
@@ -71,6 +72,7 @@ async function renderSinglePage(page, additionalInfo, createPage) {
|
|
|
71
72
|
socials,
|
|
72
73
|
siteLangs,
|
|
73
74
|
cloudinaryName,
|
|
75
|
+
useMetaTitle,
|
|
74
76
|
BUILD_MODE,
|
|
75
77
|
componentsVersion,
|
|
76
78
|
showBasicMetaRobots,
|
|
@@ -178,9 +180,8 @@ async function renderMultiplePages(page, additionalInfo, createPage) {
|
|
|
178
180
|
? paginatedPage.fullUrl.slice(0, -1)
|
|
179
181
|
: paginatedPage.fullUrl;
|
|
180
182
|
const rightSectionSlug = sectionSlug?.replace(/\//g, '');
|
|
181
|
-
const newCompose = `${compose}${
|
|
182
|
-
|
|
183
|
-
}${rightSectionSlug}`;
|
|
183
|
+
const newCompose = `${compose}${compose.endsWith('/') ? '' : '/'
|
|
184
|
+
}${rightSectionSlug}`;
|
|
184
185
|
paginatedPage.fullUrl = `${fullUrl}/${rightSectionSlug}`;
|
|
185
186
|
paginatedPage.fullPath.compose = newCompose;
|
|
186
187
|
paginatedPage.slug = newCompose;
|