@griddo/cx 1.68.6 → 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-config.js CHANGED
@@ -17,6 +17,7 @@ const CONFIG = {
17
17
  ...plugins,
18
18
 
19
19
  // defaults plugins
20
+ 'gatsby-plugin-provide-react',
20
21
  'gatsby-plugin-react-svg',
21
22
  'gatsby-plugin-react-helmet',
22
23
  'gatsby-plugin-no-sourcemaps',
package/gatsby-node.js CHANGED
@@ -94,13 +94,13 @@ exports.createPages = async ({ actions }) => {
94
94
  headers,
95
95
  footers,
96
96
  socials,
97
- // sitePages, // CX-19678
98
97
  } = await sites.getSiteData(siteID);
99
98
 
100
99
  site.languages = siteLangs;
101
100
 
102
101
  const {
103
102
  cloudinaryName,
103
+ useMetaTitle,
104
104
  } = SettingsService.settings;
105
105
 
106
106
  NavService.navigations = {
@@ -135,8 +135,8 @@ exports.createPages = async ({ actions }) => {
135
135
  cloudinaryName,
136
136
  componentsVersion,
137
137
  showBasicMetaRobots,
138
+ useMetaTitle,
138
139
  BUILD_MODE,
139
- //sitePages, // CX-19678
140
140
  siteScript
141
141
  };
142
142
 
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.68.6",
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>",
@@ -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.6",
68
+ "@griddo/eslint-config-back": "^1.69.1",
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": "48d324f4f214cc47e41ffe6d6a192289d5303c17"
100
+ "gitHead": "49197a8771c88749bce016685315640061b5eab0"
100
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}
@@ -44,7 +44,9 @@ const updateDist = async () => {
44
44
 
45
45
  const files = fs
46
46
  .readdirSync(src)
47
- .filter(fn => fn.endsWith('.js') || fn.endsWith('.json'));
47
+ .filter(
48
+ fn => fn.endsWith('.js') || fn.endsWith('.json') || fn.endsWith('.css')
49
+ );
48
50
 
49
51
  const assetsDest = './assets';
50
52
  const pageDataSrc = `${src}/page-data`;
@@ -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;