gatsby-core-theme 13.0.3 → 13.0.5

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 CHANGED
@@ -1,3 +1,23 @@
1
+ ## [13.0.5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.4...v13.0.5) (2022-10-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * schema fixes pros and cons ([b4b964d](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b4b964daf51a4a0b0a065d78b1f2882d3f7092ca))
7
+
8
+
9
+ * Merge branch 'schema-fixes' into 'master' ([b906ad2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/b906ad2bff3fb73a87fc0498930772caafef64dc))
10
+
11
+ ## [13.0.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.3...v13.0.4) (2022-10-25)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * anchor styling ([c3bb135](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/c3bb135407fef23329cc701f09c3f2b03d1a2cdd))
17
+
18
+
19
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([862c43f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/862c43f6bccc40ffe29d5592f339fdf4887f91c2))
20
+
1
21
  ## [13.0.3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v13.0.2...v13.0.3) (2022-10-25)
2
22
 
3
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "13.0.3",
3
+ "version": "13.0.5",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -8,6 +8,12 @@
8
8
  box-shadow: 0px 8px 12px 0px;
9
9
  left: 0;
10
10
  right: 0;
11
+ top: var(--nav-height);
12
+
13
+ &.usingExclOperator {
14
+ top: calc(var(--nav-height) + var(--exc-operator-height));
15
+ }
16
+
11
17
  .progressBar{
12
18
  height: 5px;
13
19
  width: 100px;
@@ -63,26 +63,34 @@ const prosAndConsData = (pageObj) => {
63
63
  const prosAndConstObj =
64
64
  pageObj?.sections?.main?.modules?.find((elm) => elm?.name === 'pros_and_cons') || {};
65
65
 
66
+ // There are url keys because it is required
67
+ // otherwise it would throw errors
66
68
  return (
67
69
  Object.keys(prosAndConstObj).length > 0 && {
68
- positiveNotes: {
69
- '@type': 'ItemList',
70
- itemListElement:
71
- prosAndConstObj?.pros?.map((elm, index) => ({
72
- '@type': 'ListItem',
73
- position: index + 1,
74
- name: elm,
75
- })) || [],
76
- },
77
- negativeNotes: {
78
- '@type': 'ItemList',
79
- itemListElement:
80
- prosAndConstObj?.cons?.map((elm, index) => ({
81
- '@type': 'ListItem',
82
- position: index + 1,
83
- name: elm,
84
- })) || [],
85
- },
70
+ ...(prosAndConstObj?.pros?.length && {
71
+ positiveNotes: {
72
+ '@type': 'ItemList',
73
+ itemListElement:
74
+ prosAndConstObj?.pros?.map((elm, index) => ({
75
+ '@type': 'ListItem',
76
+ position: index + 1,
77
+ url: `${getUrl('/')}#${elm}`,
78
+ name: elm,
79
+ })) || [],
80
+ },
81
+ }),
82
+ ...(prosAndConstObj?.cons?.length && {
83
+ negativeNotes: {
84
+ '@type': 'ItemList',
85
+ itemListElement:
86
+ prosAndConstObj?.cons?.map((elm, index) => ({
87
+ '@type': 'ListItem',
88
+ position: index + 1,
89
+ url: `${getUrl('/')}#${elm}`,
90
+ name: elm,
91
+ })) || [],
92
+ },
93
+ }),
86
94
  }
87
95
  );
88
96
  };