gatsby-core-theme 44.0.2 → 44.0.4
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 +24 -0
- package/gatsby-node.mjs +4 -3
- package/package.json +1 -1
- package/src/helpers/processor/modules.mjs +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## [44.0.4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.0.3...v44.0.4) (2025-03-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* clone deep ([6967003](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/696700385e91e29a47792b8b2dc4a72fddf3b842))
|
|
7
|
+
* remove unecessary file ([3377637](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/3377637f421db9e577c26567ffcdc1cae0eab7c0))
|
|
8
|
+
* unique Ribbons added are being displayed on other toplists ([336b400](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/336b400241dc6b2f16e7ee92307fabbd9e741e6e))
|
|
9
|
+
* update create pages to make sitemap more dynamic for partnership sites ([3a4c1a4](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/3a4c1a4902e452bce9c47783042bd19f939a9e0a))
|
|
10
|
+
* update from env file isntead ([35f4701](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/35f47018d9b3d0f9da39d0eb87d7684753fdc0f0))
|
|
11
|
+
* update sitemap to accomodate meutimao partnership site ([3f98bc7](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/3f98bc7e522169c63ecf733d82cce3580c489d04))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
* Merge branch 'update-sitemap' into 'master' ([904b073](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/904b073e3803af8972791a962bffae0d2090b50e))
|
|
15
|
+
* Merge branch 'tm-5299-ribbons' into 'master' ([e41dc4d](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/e41dc4da6cf44a068c443e8861e6896a66dd946b))
|
|
16
|
+
|
|
17
|
+
## [44.0.3](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.0.2...v44.0.3) (2025-03-14)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* redirect links ([7656319](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/76563195d77ba19023efb5411fd511fcc9218d7e))
|
|
23
|
+
* redirects with trailing slash ([1ece82d](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/1ece82dbe8b916d7f8c78cc4aa0e5d745dfbf6d5))
|
|
24
|
+
|
|
1
25
|
## [44.0.2](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.0.1...v44.0.2) (2025-03-14)
|
|
2
26
|
|
|
3
27
|
|
package/gatsby-node.mjs
CHANGED
|
@@ -261,8 +261,8 @@ export const createPages = async (
|
|
|
261
261
|
const redirectName =
|
|
262
262
|
parseInt(value.type) === 301 ? "permanent" : "redirect";
|
|
263
263
|
|
|
264
|
-
const
|
|
265
|
-
|
|
264
|
+
const toSanitized = normalizedTo !== "/" ? normalizedTo.replace(/\/$/, '') : normalizedTo;
|
|
265
|
+
const to = toSanitized !== "/" ? (process.env.TRAILING_SLASH === 'true' ? `${toSanitized}/` : toSanitized) : toSanitized;
|
|
266
266
|
|
|
267
267
|
stream.write(
|
|
268
268
|
`rewrite (?i)^${normalizedFrom}/?$ ${to} ${redirectName}; \n`
|
|
@@ -381,8 +381,9 @@ export const createPages = async (
|
|
|
381
381
|
translationsData[page.language],
|
|
382
382
|
"sitemap",
|
|
383
383
|
"sitemap"
|
|
384
|
-
)}`
|
|
384
|
+
)}` || page.template === 'sitemap'
|
|
385
385
|
) {
|
|
386
|
+
|
|
386
387
|
createPage({
|
|
387
388
|
path: `/${page.path}`,
|
|
388
389
|
component: `${__dirname}/src/components/app.js`,
|
package/package.json
CHANGED
|
@@ -323,12 +323,12 @@ export function processTopListModule(
|
|
|
323
323
|
|
|
324
324
|
listItem.items = listItem.items
|
|
325
325
|
? listItem.items.map((item) => {
|
|
326
|
-
const operatorRelation = Object.values(relations.operator).find(
|
|
326
|
+
const operatorRelation = cloneDeep(Object.values(relations.operator).find(
|
|
327
327
|
(operator) =>
|
|
328
328
|
operator.operator_id === item.operator_id &&
|
|
329
329
|
operator.market === listItem.market &&
|
|
330
330
|
type === operator.type
|
|
331
|
-
);
|
|
331
|
+
));
|
|
332
332
|
|
|
333
333
|
if (operatorRelation) {
|
|
334
334
|
operatorRelation.ribbons =
|