@griddo/cx 1.69.0 → 1.69.1

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-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.69.0",
4
+ "version": "1.69.1",
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.69.0",
68
+ "@griddo/eslint-config-back": "^1.69.1",
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": "e7c75c6d330faf9670561ac2ba04afc541627f9f"
100
+ "gitHead": "49197a8771c88749bce016685315640061b5eab0"
101
101
  }
@@ -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,7 +63,7 @@ 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
 
@@ -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}
@@ -24,7 +24,7 @@ const addCloudinaryParams = (socialImage, params) => {
24
24
  return `https://${head}/${params}${fullId}`;
25
25
  };
26
26
 
27
- const getPageMetaData = params => {
27
+ const getPageMetaData = params => {
28
28
  const {
29
29
  title,
30
30
  metaTitle,
@@ -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
- compose.endsWith('/') ? '' : '/'
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;