gatsby-core-theme 5.1.2 → 5.1.3
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/.ci.yml +2 -0
- package/CHANGELOG.md +15 -0
- package/gatsby-node.esm.js +3 -1
- package/package.json +1 -1
package/.ci.yml
CHANGED
|
@@ -15,6 +15,8 @@ Theme Tests:
|
|
|
15
15
|
coverage: /All files\s*\|\s*([\d\.]+)/
|
|
16
16
|
rules:
|
|
17
17
|
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
|
|
18
|
+
- if: '$CI_COMMIT_BRANCH == "master" && $PIPELINE == "automated"'
|
|
19
|
+
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master" && $PIPELINE == "automated"'
|
|
18
20
|
|
|
19
21
|
Theme Publish:
|
|
20
22
|
image: git.ilcd.rocks:4567/team-floyd/themes/gatsby-themes:node14
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [5.1.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v5.1.2...v5.1.3) (2022-03-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* calculate number of items default ([ef72a91](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/ef72a91e7de83f08a6ef9869d40629fd05714554))
|
|
7
|
+
* check no columns specified default add 3 columns ([c94b18c](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c94b18cf4466d875ee58f7f0e14aece922aa4c03))
|
|
8
|
+
* reorder pipeline stages ([aa21ba3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/aa21ba36f81e8270d071c87e5c661d9e2978b1be))
|
|
9
|
+
* reorder pipeline stages ([b52d2c8](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b52d2c8892f2cb829714c691956df29f04a6ff6a))
|
|
10
|
+
* show full items in the archive page ([c1f0ff1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c1f0ff133d62a95a9457411a6012557886e69fed))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
* Merge branch 'fix-lighthouse-order' into 'master' ([e0f459a](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/e0f459a0a2fd3f7e4757fdee6bf9237cc7ba3ef7))
|
|
14
|
+
* Merge branch 'tm-2763-archive-module' into 'master' ([fd0d258](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/fd0d25811cecc14bc054c0fd06e2434ee7f168b8))
|
|
15
|
+
|
|
1
16
|
## [5.1.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v5.1.1...v5.1.2) (2022-03-10)
|
|
2
17
|
|
|
3
18
|
|
package/gatsby-node.esm.js
CHANGED
|
@@ -52,9 +52,11 @@ function createArchivePage(pageObject, marketSections, prefilledModules, createP
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
if (archiveModule.pagination_type !== 'load_more') {
|
|
55
|
+
const numOfColumns = archiveModule.desktop_num_of_columns;
|
|
56
|
+
const calDefaultNrOfItems = (numOfColumns !== null ? numOfColumns : 3) * 3;
|
|
55
57
|
const numOfItemsPerPage = Math.sign(archiveModule.num_of_items)
|
|
56
58
|
? archiveModule.num_of_items
|
|
57
|
-
:
|
|
59
|
+
: calDefaultNrOfItems;
|
|
58
60
|
const chunked = chunk(cloneDeep(archivePages), numOfItemsPerPage);
|
|
59
61
|
const numOfPages = chunked.length;
|
|
60
62
|
chunked.forEach((value, index) => {
|