@griddo/cx 1.75.38 → 1.75.40
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 +1 -0
- package/package.json +3 -3
- package/src/utils/pages.js +10 -2
package/gatsby-node.js
CHANGED
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.40",
|
|
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.40",
|
|
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": "b6e380b0d181b2203fb246bd1806e95cd341c011"
|
|
101
101
|
}
|
package/src/utils/pages.js
CHANGED
|
@@ -124,11 +124,18 @@ async function renderSinglePage(page, additionalInfo, createPage) {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
async function renderListPages(
|
|
127
|
-
{
|
|
127
|
+
{
|
|
128
|
+
rootPage,
|
|
129
|
+
pages,
|
|
130
|
+
isRoot,
|
|
131
|
+
defaultLang,
|
|
132
|
+
distributorTemplate,
|
|
133
|
+
totalQueriedItems,
|
|
134
|
+
},
|
|
128
135
|
additionalInfo,
|
|
129
136
|
createPage
|
|
130
137
|
) {
|
|
131
|
-
await pages.forEach(async(dataInPage, idx) => {
|
|
138
|
+
await pages.forEach(async (dataInPage, idx) => {
|
|
132
139
|
const isFirstPage = idx === 0;
|
|
133
140
|
const pageNumber = idx + 1;
|
|
134
141
|
const { domainUrl, compose } = rootPage.fullPath;
|
|
@@ -151,6 +158,7 @@ async function renderListPages(
|
|
|
151
158
|
baseLink: `${domainUrl}${compose}`,
|
|
152
159
|
queriedItems: dataInPage,
|
|
153
160
|
queriedData: dataInPage,
|
|
161
|
+
totalQueriedItems: totalQueriedItems?.length,
|
|
154
162
|
},
|
|
155
163
|
isRoot,
|
|
156
164
|
defaultLang,
|