gatsby-core-theme 41.1.28 → 41.1.29
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/CHANGELOG.md +12 -0
- package/gatsby-node.mjs +13 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [41.1.29](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v41.1.28...v41.1.29) (2025-01-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* get latest changes from master ([8a92b20](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/8a92b208ece29516ed782d64077d1b6164405d85))
|
|
7
|
+
* update gatsby node ([ad73d78](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/ad73d78b4910fc86863a200e4b48c21c3071d187))
|
|
8
|
+
* update gatsby node file to filter out coming soon and inactive casinos from archive module ([802b4a8](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/802b4a8e5acaadaa6525666ab2539a18e1992c09))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
* Merge branch 'tm-5128-exlude-inactive-casinos-archive-module' into 'master' ([5797aad](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/5797aadde1b7ece12bb39525e8154d564b520103))
|
|
12
|
+
|
|
1
13
|
## [41.1.28](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v41.1.27...v41.1.28) (2025-01-20)
|
|
2
14
|
|
|
3
15
|
|
package/gatsby-node.mjs
CHANGED
|
@@ -91,6 +91,13 @@ function createArchivePage(
|
|
|
91
91
|
|
|
92
92
|
if (chunked) {
|
|
93
93
|
chunked.forEach((value, index) => {
|
|
94
|
+
let activeItems = value;
|
|
95
|
+
if (value.type === 'operator') {
|
|
96
|
+
activeItems = value.filter(
|
|
97
|
+
(item) => item.relation?.status === "active"
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
94
101
|
const page = cloneDeep(pageObject);
|
|
95
102
|
page.hasArchive = true;
|
|
96
103
|
const numOfPages = chunked.length;
|
|
@@ -103,7 +110,7 @@ function createArchivePage(
|
|
|
103
110
|
pageObject.path.charAt(0) !== "/"
|
|
104
111
|
? `/${pageObject.path}`
|
|
105
112
|
: pageObject.path;
|
|
106
|
-
archive.items =
|
|
113
|
+
archive.items = activeItems.map((item) => processor.clonePage(item));
|
|
107
114
|
switch (archive.currentPage) {
|
|
108
115
|
case 1:
|
|
109
116
|
page.path = pageObject.path;
|
|
@@ -158,9 +165,11 @@ function createArchivePage(
|
|
|
158
165
|
} else {
|
|
159
166
|
const page = cloneDeep(pageObject);
|
|
160
167
|
const archive = cloneDeep(page.sections.main.modules[archiveModuleIndex]);
|
|
161
|
-
archive.items = cloneDeep(archivePages)
|
|
162
|
-
|
|
163
|
-
|
|
168
|
+
archive.items = cloneDeep(archivePages)
|
|
169
|
+
.filter((item) =>
|
|
170
|
+
item.type === "operator" ? item.relation?.status === "active" : true
|
|
171
|
+
)
|
|
172
|
+
.map((item) => processor.clonePage(item));
|
|
164
173
|
|
|
165
174
|
page.sections.main.modules[archiveModuleIndex] = archive;
|
|
166
175
|
createPage({
|